Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing Inline Tool Opening on Text Hover in Editor.js #2669

Closed
mitee163 opened this issue Mar 27, 2024 Discussed in #2668 · 1 comment
Closed

Implementing Inline Tool Opening on Text Hover in Editor.js #2669

mitee163 opened this issue Mar 27, 2024 Discussed in #2668 · 1 comment

Comments

@mitee163
Copy link

Discussed in #2668

Originally posted by mitee163 March 26, 2024
I'm exploring the usage of Editor.js and I'm interested in implementing a feature where inline tools open on hovering over text within the editor. I would like to know if anyone has experience or has implemented this functionality before.

Specifically, I want the inline tool to be triggered when a user hovers over text within the editor, providing the option to access my custom inline tool to editing options or actions related to that text. If anyone has successfully achieved this or has any insights on how to approach it within the Editor.js framework, I would greatly appreciate any guidance or pointers.

Thank you in advance for your help!

@reindert-vetter
Copy link

reindert-vetter commented Mar 30, 2024

I don't think that is easily possible. How is the script supposed to know what is selected?

I do expect that the inline tool would be visible when I place my cursor. Then I expect an inline tool that allows me to type future letters in bold, for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants