Search code examples
tinymcen2cms

TinyMCE - Completely disable validation


I'm using N2CMS which in turn uses TinyMCE to edit HTML content.

what i need to do is disable the TinyMCE HTML validation completely.

Its stripping out anything out that doesn't adhere to its settings.

If I add a custom attribute <a href="{0}" test="tester1" /> it just removes it the custom attribute!

also, it always add <p> tags around every bit of HTML content.

how can i disable the validation?

any help is very much appreciated.


Solution

  • to resove this, add these into the tinyMCE settings, or init

        cleanup_on_startup: false,
        trim_span_elements: false,
        verify_html: false,
        cleanup: false,
        convert_urls: false