-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heading Block: Unhandled DOMException when changing heading level #3091
Comments
We're forcing the TinyMCE component to remount (a new |
My guess is that gutenberg/blocks/editable/tinymce.js Line 49 in e869a9d
Commenting this line resolves the issues; it might be enough to just remove this, though we'd want to check if there are any listeners we'd need to be concerned about that aren't being cleaned up through the DOM removal alone. |
#3093 would work fine until we release a fix in 4.7.2 we have still a few things we need to fix before we can release that one. The editor container is to be removed in iframe mode only the headless mode by setting theme: false is now supported by both inline/iframe and that was a recent change. That caused code to be shared between the modes that accidently assigned the editorContainer to the target for inline mode and that causes it to be removed when ”destory” is called. Destory or rather ”remove” should be called when you want to detach a editor from a div since it will otherwise have lingering event handles and also the editor instance still in the EditorManager collection and that would mean that the GC can’t remove anything that editor is referencing and that could be a lot of things and produce a memory leak. We will do a fix for this bug on Monday and push to public master but a proper release is likely to be done later not currently sure when need to look into that. |
Issue Overview
Can't change the heading level (
nodeName
) of a heading block; see screencast below.Console trace:
Steps to Reproduce
The text was updated successfully, but these errors were encountered: