WordPress.org

Ready to get started?Download WordPress

Forums

Custom button in TinyMCE editor (3 posts)

  1. ndayakar
    Member
    Posted 4 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. 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.

  3. ndayakar
    Member
    Posted 4 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