wysiwyg-editor icon indicating copy to clipboard operation
wysiwyg-editor copied to clipboard

Uncaught TypeError e[t] is not a constructor and cannot read properties of null (reading 'split')

Open JensDebergh opened this issue 2 years ago • 1 comments

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:

Screenshot 2022-07-20 at 18 06 13

After changing some content in the editor:

Screenshot 2022-07-20 at 18 09 12

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

JensDebergh avatar Jul 20 '22 16:07 JensDebergh

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 () {};

dcsaszar avatar Aug 20 '22 10:08 dcsaszar