WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Add button to WYSIWYG editor (5 posts)

  1. herstrion
    Member
    Posted 7 years ago #

    Hello there,

    I wish to be able to add some extra functions to the WYSIWYG editor.

    For example is it possible to add a button so that the selected text can be coloured blue?

    Regards

  2. Ethilien
    Member
    Posted 7 years ago #

    1. Got to wp-includes/js/tinymce/tiny_mce_gzip.php
    2. Go to line number 127, or perform a search for
      $mce_buttons = apply_filters('mce_buttons'
    3. Edit the end of this line and change 'wphelp')); to 'wphelp', 'forecolor'));

    Just upload the file again and you should have a color select box.

  3. herstrion
    Member
    Posted 7 years ago #

    Thanks Ethilien, this is _exactly_ what I needed. You're a star!

  4. tsguitar
    Member
    Posted 7 years ago #

    Can you mark this post "Resolved," then? Thanks.

  5. RichS
    Member
    Posted 6 years ago #

    It didn't work for me as it appears your trying to edit the wrong file. Maybe things have changed in later versions?

    Here is a post that was easy to follow and helped me fix this. :)

Topic Closed

This topic has been closed to new replies.

About this Topic