-
How to add toolbar |
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
Apr 5, 2023
Replies: 1 comment
-
That’s outside of markdown. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ChristianMurphy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That’s outside of markdown.
You can make such a toolbar with any framework, react, preact, vue, or with normal JavaScript.
Then you figure out where the user’s selection or caret is.
And then, depending on the command, do something.
For a “bold” button, you’d wrap the selection with
**
and**
for example.