WordPress.org

Ready to get started?Download WordPress

Forums

Visual Editor Custom Buttons
[resolved] Removing code when pressing the button again. (3 posts)

  1. stealthrt
    Member
    Posted 1 year ago #

    I am looking for JS code to allows for the custom button code to be removed from the highlighted text. Currently it continues to place the custom html code every time you click the button on the same highlighted text.

    Is there a mod i can do for the JS files that would allow it to remove the custom html code when i pretty the button again? Just like it does with the bold button, etc?

    Thanks!

    http://wordpress.org/extend/plugins/visual-editor-custom-buttons/

  2. cyberduck
    Member
    Plugin Author

    Posted 1 year ago #

    No function for that. But you can use the default eraser-button to remove code.

  3. cyberduck
    Member
    Plugin Author

    Posted 1 year ago #

    Case resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.