Replies: 1 comment
-
Here's an example solution for anyone that needs it:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I don't see an obvious way to get the selected text from the documentation on
@selectionChange
:Furthermore, accessing the editor directly from a ref reports that editor.getSelection() is not a function (although .getHTML() works just fine).
Are we meant to just use the range values to build the selection from getHTML() or is there a way to do this that I am missing?
Beta Was this translation helpful? Give feedback.
All reactions