WordPress.org

Ready to get started?Download WordPress

Forums

Adding new tags to Edit screen (5 posts)

  1. acollins22
    Member
    Posted 10 years ago #

    Hi Folks,
    I'd like to write a hack to WordPress to add a new tag and button to the WP editor screen and I'm looking for clues :-)
    I'd like a new button, along the lines of "UL", IMG" etc that asks for a parameter and then includes a piece of Javascript. The button should then change to </script> so I can close the tag.
    Does anyone have anything similar I could look at for clues or pointers as to where I should start looking?
    Thanks for your help.
    Andy.

  2. Root
    Member
    Posted 10 years ago #

  3. acollins22
    Member
    Posted 10 years ago #

    That's great and just the job.
    Thanks.
    Andy.

  4. ringmaster
    Member
    Posted 10 years ago #

    If you would rather create a plugin that adds a button to the quicklink bar, you can try my edit_button plugin template.
    http://www.asymptomatic.net/wp-hacks/
    This plugin template shows you have to create a new button on the toolbar (and a click event handler) from a plugin without editing the quicklinks.js file.

  5. acollins22
    Member
    Posted 10 years ago #

    Thanks for that Ringmaster, I'll have a look.
    Cheers.
    Andy

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.