wysiwyg-editor
wysiwyg-editor copied to clipboard
Uncaught TypeError e[t] is not a constructor and cannot read properties of null (reading 'split')
Expected behavior.
Editor loads and I expect changed editor content to be returned on the callback.
Actual behavior.
Editor loads and I should be able to change editor content
Steps to reproduce the problem.
On initial load console shows:

After changing some content in the editor:

I'm unable to determine what exactly is causing the problem since I only have access to the minified version through npm.
Editor version.
4.0.13
OS.
MacOS
Browser.
Google Chrome
Recording.
https://monosnap.com/file/ihvBzADorETRg3RTveqdSCy0t9zATt
FWIW, I saw this error when I compiled my app for es2016 and added a plugin this way:
FroalaEditor.PLUGINS.foo = () => {};
I fixed it with rewriting it to:
FroalaEditor.PLUGINS.foo = function () {};