Skip to content

toolbar #1144

Answered by wooorm
sm-hejazi asked this question in Q&A
toolbar #1144
Apr 5, 2023 · 1 comment
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianMurphy
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