Clicking "Cancel" on Media Search dialog crashes cx2 with error "VM972:1037 Uncaught TypeError: Cannot read property 'hasBeenModified' of null". As a result, the media insertion dialog closes but the background overlay remains, making the editor behind it unusable (and without a way to close other than reloading the page, closing the tab, etc.).
Steps to replicate:
- Click on a paragraph
- Open Media Search dialog
- Now without doing anything click on "Cancel"
The page becomes unresponsive with an error in the console "VM972:1037 Uncaught TypeError: Cannot read property 'hasBeenModified' of null"