Replies: 1 comment 3 replies
-
Editor.js hands such tasks internally and doesn't provide public methods for this. We have a Caret API, with some methods for moving caret to a particular Block. What you're described it could be implemented using native js method for Selection. If you have some example of use cases, please share. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Maybe I missed it in the docs. There's quite a bit about blocks, inline tools, etc. but I don't see an API for common things.
How do we get the selected text?
How would we get all the text from the current caret location back to the start of the document?
How do we insert text at the caret location? (even if in the middle of a block)
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions