I am new to Froala. We would like to use it on our commercial project for newsletters, but when we paste HTML newsletter it strips all head tags and it shows only the body content.
Can I change this behavior in JS?
THX.
You can change the tags allowed by using allowedTags option http://editor.froala.com/options#allowedTags.
IMNSHO, I would recommend to avoid allowing the users to change the content of the head directly with the editor. That's because most of the users don't know what information should go there or they use them inappropriate. Instead, you could make other inputs where the users enter the Title or Description and then build yourself the head tag.
Last commit introduced a new option fullPage that allows tags such as <HTML>, <HEAD>, <BODY> when the option is enabled.
awesome :)
Most helpful comment
Last commit introduced a new option
fullPagethat allows tags such as<HTML>,<HEAD>,<BODY>when the option is enabled.