Custom button in TinyMCE editor (3 posts)

  1. ndayakar
    Posted 6 years 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.

  2. Les Bessant
    keeper of the Tiggers
    Posted 6 years ago #

    I found this article a while ago when I was trying to do exactly the same thing:


    Worked for me - it lets you add styles to a drop down rather than adding a button, but the effect is the same.

  3. ndayakar
    Posted 6 years ago #

    Thank you LesBessant for the response. I shall look at the site you have mentioned and try to work it out.

Topic Closed

This topic has been closed to new replies.

About this Topic