You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Init a wysiwyg and then set some contents without html tag like this editor.setContents('Try to edit me, set me bold, add new line, ... Crash x_x');.
Then try setting a style to the existing text or add a new line. This causes an error: Cannot read properties of undefined (reading 'textContent') (style like bold)
or Failed to execute 'createElement' on 'Document': The tag name provided ('#text') is not a valid name. (new line)
In version 2.44.3 no problem. Since 2.44.4 it crashes.
Describe the bug
Init a wysiwyg and then set some contents without html tag like this
editor.setContents('Try to edit me, set me bold, add new line, ... Crash x_x');
.Then try setting a style to the existing text or add a new line. This causes an error:
Cannot read properties of undefined (reading 'textContent')
(style like bold)or
Failed to execute 'createElement' on 'Document': The tag name provided ('#text') is not a valid name.
(new line)In version 2.44.3 no problem. Since 2.44.4 it crashes.
To Reproduce
https://stackblitz.com/edit/js-w6byqc?file=index.js
The text was updated successfully, but these errors were encountered: