How do I add buttons to the post editor?
-
Here is what I have done
I added the following CSS to my custom CSS:
.mytip { display: block; margin: 1em; padding: 4px 10px 4px 10px; background-color: #ddffdd; border: 1px solid #b1ccb1; }
Then, in the post editor, I created the following in the Text tab:
<span class="mytip">This is a tip</span>
This produces a block of text with a green background and dark green border. That was my exact intention.
Now, I would like to be able to simply highlight the text in the post editor and click a button to have the span class added automatically – similar to what can already be done with the b-quote button to produce a blockquote.
How do I add this new button to the post editor? I would like to learn how to do this myself rather than using a plugin.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How do I add buttons to the post editor?’ is closed to new replies.