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
Hello, I developing a browser extension for external site that use editor.js.
The extension inserts a text node or span elements into the input field .ce-paragraph.cdx-block. After that, the user can click on the emoji from the site and it is placed at the beginning of the line, ignoring my custom elements.
// now
step 1: text from extension
step 2: 😐text from extension
// expected
step 1: text from extension
step 2: text from extension😐
What event need to be trigger in order to editor.js re-cache cursor position? I tried click, focus, selectionchange still wrong cursor position.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I developing a browser extension for external site that use
editor.js
.The extension inserts a text node or span elements into the input field
.ce-paragraph.cdx-block
. After that, the user can click on the emoji from the site and it is placed at the beginning of the line, ignoring my custom elements.What event need to be trigger in order to
editor.js
re-cache cursor position? I triedclick
,focus
,selectionchange
still wrong cursor position.At the moment insert looks like:
Beta Was this translation helpful? Give feedback.
All reactions