Support » Plugin: Advanced TinyMCE Configuration » invalid_elements

  • Resolved Zaur Aliyev

    (@zauronline)



    Hi Andrew,

    I am trying to add some tags to invalid list so tinymce removes these tags when the page saved/updated, but does not work.

    This is the code below i found on tinymce website: https://www.tinymce.com/docs/configure/content-filtering/#invalid_elements

    tinymce.init({
    selector: ‘textarea’, // change this value according to your HTML
    invalid_elements : ‘strong,em’
    });

    I tried these option in your plugin:
    invalid_elements | {selector: ‘textarea’, invalid_elements : ‘strong,em’}
    invalid_elements | [{selector: ‘textarea’, invalid_elements : ‘strong,em’}]
    invalid_elements | ‘strong,em’
    invalid_elements | strong,em

    Left side of the pipe “|” is option name field, right side is in the Value field.

    I am trying to disable and tags in above code.

    I would really appreciate any help!

    Thanks!!!

    https://wordpress.org/plugins/advanced-tinymce-configuration/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘invalid_elements’ is closed to new replies.