First excuse my English, french is my first language.
I tried both solutions and none works correctly.
1) var mce_extended_valid_elements = "figure [class], figcaption";
no html5 tags in the format list and when I code html5 tags in the html mode and return to tinyMce mode all html5 tags are replace by a <p> tags;
2) Tiny.config.valid_elements = "* (*)";
no html5 tags in the format list and when I code html5 tags in the html mode and return to tinyMce mode all html5 stil there, but the only way to change any tag, is to go back to the html mode.
More Modx sites are designed with html 5 and content publishers need to be able to use html tags 5. Does anyone found a solution to this problem?
Thank you for your cooperation
PHP : 5.2.13
MySQl : 5.1.44
var mce_extended_valid_elements = "-article"
in my Evo: 'assets/plugins/tinymce/js/xconfig.js, so it stopped deleting the article tag. But tinyMCE then includes it in a <p> tag. Furthermore, it adds a new one any time I open its html editor, like this:
I think I have to tell to tinyMCE that article
is a block element, like div
, but I don't know how.
Mine is the TinyMCE version: 184.108.40.206 (2010-09-29) on MODx Evo 1.0.6
[ed. note: andrearicci last edited this post 6 years, 9 months ago.]
MODx evo 1.5~1.6 ✪ Apache v 2.2.22 ✪ PHP v 5.3.10 ✪ MySQL v 5.1.61