add custom button to wsiwyg field

Support General add custom button to wsiwyg field

Viewing 3 posts - 1 through 3 (of 3 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.

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