Wysiwyg-editor: Striped HTML tags

Created on 24 Oct 2014  路  3Comments  路  Source: froala/wysiwyg-editor

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.

Most helpful comment

Last commit introduced a new option fullPage that allows tags such as <HTML>, <HEAD>, <BODY> when the option is enabled.

All 3 comments

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 :)

Was this page helpful?
0 / 5 - 0 ratings