Closed theDanielJLewis closed 3 years ago
Repeatable in Chrome, Brave, and Firefox.
When creating a new page, it doesn't crash until I move my mouse after typing in the page contents.
I tried deleting the enlighter-options row and that didn't make a difference.
Hi Daniel.
it seems to be a duplicate of https://github.com/EnlighterJS/Plugin.Gutenberg/issues/30 - which is caused by empty codeblocks.
would you like to try a hotfix for the Gutenberg plugin ? just replace the files in wp-content/plugins/enlighter/resources/gutenberg
and clear the browser cache/disable caching. As a side effect, previously created empty blocks become invalid - this doesn't affect existing blocks with code
technical background: the build-in escape function of gutenberg doesn't handle null
values which are returned by empty blocks..
I think I got it worked before I read your message. I did two things that fixed the console errors, and only one was directly connected to Enlighter.
So I think everything is working again now, but I'll know better as I work with it more. If I still have problems, I'll try your hotfix unless it's merged into a plugin update.
Thanks!
I'm running WordPress 5.6 with Enlighter 4.4.1 CE on PHP 7.3.5 and 7.4.1.
With nothing by Twenty Twenty theme and Enlighter enabled, my Gutenberg page/post editor crashes and won't let me edit or create anything.
If I edit an existing page, clicking anywhere in the contents will crash the editor.
If I'm creating a new page, the editor crashes after typing only a few characters.
This happens only with Enlighter enabled (and nothing else).
Here's the official error the WP editor gives me:
But I see more in my browser console: