Reputation: 89
I'm using latest self hosted TinyMCE 5 editor.
I want to paste my own HTML into the editor and be able to edit everything including the html, head, body tags..
I've tried any combination of the following config, but TinyMCE keeps removing the html, head, body tags..
tinymce.init({
selector : '.editor,
valid_elements : '*[*]',
valid_children : "+html,+head,+body",
extended_valid_elements : "html[*],head,body,script[*],style[*],link[*]",
custom_elements : "html,head,body,script,style,link"
});
How can I stop TinyMCE from removing them tags?
Upvotes: 4
Views: 2125
Reputation: 89
I found a solution while I was writing this post.
Simply add the 'fullpage' plugin to your config.
tinymce.init({
selector : '.editor,
plugins : 'fullpage',
});
Upvotes: 3