Hey, I want to create a custom button in CKEditor. The button should work exactly like "bold" and "italic" buttons. I want to wrap the html with an h2 tag. I know I can use the styles dropdown but I would like to have a special button for it. The button should get a "clicked" icon when the cursor is on a text wrapped in h2 and by clicking on it in that state it should remove the h2 tags. When the cursor is on a text that is not a wrapped with h2, It should be get a "non clicked" icon and when clicked, wrap the text with h2. Exactly as with the bold button for example. I searched the web for answers but could not find any.
Thank You!