[wp-hackers] Add a button to TinyMCE to add p.class
Alex Hempton-Smith
hempsworth at googlemail.com
Sun Jan 11 03:13:14 GMT 2009
Hey all,
This will be my first plugin, and it's to do with TinyMCE so I've got the
feeling it'll be a baptism of fire...
However, I only want something simple!
I would like a user to be able to select some text, press a button on the
TinyMCE console which would just add a <p class="myclass"> to the selected
text. This is because I'm working with complete HTML n00bs, and they won't
want the hassle of editing the HTML every time.
How would I go about this?
Many thanks,
-- Alex
More information about the wp-hackers
mailing list