How to create custom toggle button in tinymce?

Question

I know how to create a basic button with no state. I created two buttons that output custom list styles by outputting ul’s with a certain class that is styled in the CSS. But now I would like for the buttons to have a state whereby if I click button 1 and then click button 2, button 1 is disabled and button 2 is enabled and if I click on a custom list style item with button 2 state, button 2 becomes active.

0
Chris Okwakol 3 weeks 2023-03-02T09:51:40-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse