Replies: 1 comment
-
Inline toolbar works with HTML tags. You can build custom inline tools around unique tags, possibly even just use custom HTML elements like Believe the API has an Not a complete answer, not an expert either. FWIW. |
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
-
I am building something like Wordpress'es shortcodes functionality where a piece of text is replaced with data from the database.
I want to be able to insert visual elements (imagine a span with some styling -
Hello <span class="...">user-full-name</span>
) for each shortcode instead of using text format (e.g.Hello [user-full-name].
). And I want to offer a list of available shortcodes to the end user.I can't seem to find such functionality in Editor.js and I thought I might ask. Is there a way to have nested blocks?
Also, this brings another challenge - how do I open the inline toolbar without having a text selected first?
Beta Was this translation helpful? Give feedback.
All reactions