Forums

Adding buttons to quicktags.js (3 posts)

  1. Monkeyboy
    Member
    Posted 6 years ago #

    Can anyone tell me how to add more buttons to quicktags.js?

    I've had a look at the file and can see that it would be something like the STRONG code below...


    edButtons[edButtons.length] =
    new edButton('ed_strong'
    ,'b'
    ,''
    ,'
    '
    ,'b'
    );

    ...but changing the relevant parts such as the start and end tags and the "new edButton" line to give it a unique name. But is there anything else in the file that needs editing as a result of doing this? Thanks in advance for any help.

  2. Kafkaesqui
    Moderator
    Posted 6 years ago #

    See podz's guide on this:
    http://tamba2.org.uk/wordpress/quicktags/

  3. Monkeyboy
    Member
    Posted 6 years ago #

    Thanks. That tutuorial's confirmed what I thought.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.