add custom button to wsiwyg field

Support General add custom button to wsiwyg field

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18411

    Hi
    Could you please advise on the best/easiest method to add a custom button to the wysiwyg field ?
    Thanks
    Reece

    #18412

    This is possible with the standard wp-editor by using the filter 'mce_external_plugins' then calling a custom plugin .js file. How can I do something similar with the wysiwyg field ?

    #18430
    Anh TranAnh Tran
    Keymaster

    Hi,

    The wysiwyg editor uses wp_editor() function to render the editor. So it might use the same hooks as the default editor (I'm not 100% sure about that, this need to be checked and confirmed). You can try disable Gutenberg first, since tinyMCE in Gutenberg is heavily customized and hooks might not work.

    #49495
    metafanmetafan
    Participant

    Say hello 5 years later,
    is there a solution for this problem?

    I'd like to add a custom list (ul with class) button to the wysiwyg field.

    Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.