Here is a snippet from a plugin that replaces the text in the editor:
const { cm } = inkdrop.getActiveEditor()
cm.replaceSelection(md)
How do I get the currently selected text in the editor?
Thanks
Here is a snippet from a plugin that replaces the text in the editor:
const { cm } = inkdrop.getActiveEditor()
cm.replaceSelection(md)
How do I get the currently selected text in the editor?
Thanks
Thanks. I wasn’t sure where to look up the editor api, now I know