CodeMirror code editor is not being refreshed when we resize it. This
caused issue #23796
- Added a ResizeObserver which will call `editor.refresh()` on resize
- Removed `containerHeight` props which is no longer useful due to the
introduction of the resize observer. This was introduced in #16971