Skip to content

Conversation

@brianjhanson
Copy link
Contributor

Making this a draft because I'd like to find a better, fix but also don't want to lose this in case this ends up being the best option.

When loading a CKEditor config in a slideout, sometimes (potentially only in Firefox) the module script in _edit.twig can be executed before window.makeMonacoEditor has been called and the window.monacoEditorInstances object established. In those cases, you'll get a window.monacoEditorInstances is undefined type error, and the config editor won't load.

@brianjhanson
Copy link
Contributor Author

I think ideally we'd instantiate the monaco editor ourselves, but even then we'd have to wait for window.makeMonacoEditor to be ready so it's not much better.

@brianjhanson brianjhanson marked this pull request as ready for review June 5, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants