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
One thing I ran into while testing which stumped me for a bit is that sometimes I was getting empty string back from .trumbowyg('html') even though the editor was clearly on screen populated with lots of text.
Description
On my page, the user clicks an "edit" button which copies the html from another page element into the editor node and then shows the editor. The user can then hit "save" to copy the html back. This was breaking because if the user hit "save" without engaging with the editor, it would give empty string for it's HTML.
OS: Windows 11
Browser: Chrome 116.0.5845.111
How to reproduce?
For me, copying the below into a .html file, opening in chrome, and clicking the button reproduces the issue:
First off, thanks for this fantastic library!
One thing I ran into while testing which stumped me for a bit is that sometimes I was getting empty string back from
.trumbowyg('html')
even though the editor was clearly on screen populated with lots of text.Description
On my page, the user clicks an "edit" button which copies the html from another page element into the editor node and then shows the editor. The user can then hit "save" to copy the html back. This was breaking because if the user hit "save" without engaging with the editor, it would give empty string for it's HTML.
OS: Windows 11
Browser: Chrome 116.0.5845.111
How to reproduce?
For me, copying the below into a .html file, opening in chrome, and clicking the button reproduces the issue:
The text was updated successfully, but these errors were encountered: