ndayakar
Member
Posted 1 year ago #
I would like to add a custom button to the visual editor, which can be used to add a span tag with a specified style attribute.
For example,
<span style="font-variant: small-caps">Some text</span>
Could someone please help me how to add a new button to the TinyMCE toolbar.
Thank you in advance.
I found this article a while ago when I was trying to do exactly the same thing:
http://blog.estherswhite.net/2009/11/customizing-tinymce/
Worked for me - it lets you add styles to a drop down rather than adding a button, but the effect is the same.
ndayakar
Member
Posted 1 year ago #
Thank you LesBessant for the response. I shall look at the site you have mentioned and try to work it out.