Skip to content

How to programmatically open/close the tooltip? #328

Answered by Saul-Mirone
duhaime asked this question in Q&A
Discussion options

You must be logged in to vote

Since the tooltip is controlled by prosemirror selection. So what you need to do is just create a text selection programmatically. The transaction.setSelection API in prosemirror can help you.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@duhaime
Comment options

Answer selected by duhaime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants