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
Everything is working normally and perfectly when the contenteditable div contains only text.
When I have tags inside, it fails... It only takes the first text node inside the contenteditable div... It supposes to calculate all the nodes (img, span, etc) inside the contenteditable text.
The image below shows contenteditable div containing images (emojis)...
When I am checking the caret position when the div contains the image element, it calculates it perfectly, with no errors, the problem is when setting the caret position.
Checking the caret position: console.log( $('#cmb-text').caret()
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Everything is working normally and perfectly when the contenteditable div contains only text.
When I have
tags inside, it fails... It only takes the first text node inside the contenteditable div... It supposes to calculate all the nodes (img, span, etc) inside the contenteditable text.
The image below shows contenteditable div containing images (emojis)...
When I am checking the caret position when the div contains the image element, it calculates it perfectly, with no errors, the problem is when setting the caret position.
Checking the caret position:
console.log( $('#cmb-text').caret()
The text was updated successfully, but these errors were encountered: