Determine if selected text already has formatting (emphasis, strong, etc) for toggle. #2212
Unanswered
justin-harr
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Working on adding the toolbar for my editor. Currently have it setup to toggle formatting like emphasis, but I can't figure out how to hook into if the current selection already has emphasis so I can change the button style, like the Crepe example:

Here is what I have now:
Beta Was this translation helpful? Give feedback.
All reactions