Page 1 of 1

HTML5 WYSIWYG Editor

Posted: Mon Aug 11, 2014 9:26 am
by kierweb
I'm using a HTML5 template and trying to integrate it into CMS made simple - but all the editors available for CMS made simple strip the HTML5 tags - even when I choose html5-scheme.

Is there a HTML5 compatible WYSIWYG editor for cms made simple, or what do I need to add in the advanced configuration to allow the HTML5 tags e.g. article etc.

Thanks

Re: HTML5 WYSIWYG Editor

Posted: Mon Aug 11, 2014 9:55 am
by Jo Morg
kierweb wrote:I'm using a HTML5 template and trying to integrate it into CMS made simple - but all the editors available for CMS made simple strip the HTML5 tags - even when I choose html5-scheme.
WYSIWYG editors are typically content editors, not HTML editors, although they allow for some limited HTML formatting.
Please note that a well organized CMS separates design from content, and CMSMS is no exception. Also note that there is no option to use a WYSIWYG editor on the templates editor, although you can use a code highlighter (there are a few modules for that on the forge).
However you may try to investigate the TinyMCE WYSIWYG settings and set Use html5-scheme, instead of html4 and see if it works for you. But let me stress this: that fact that you can doesn't necessarily mean that you should! The best practice is to keep design as separated as possible from content.
HTH

Re: HTML5 WYSIWYG Editor

Posted: Mon Aug 11, 2014 10:19 am
by fredp
Hi,

I include the following setting in the Extra configuration textarea of the TinyMCE WYSIWYG >> Advanced tab on the Admin console:

Code: Select all

schema: "html5"
Seems to work for me.
For example, I can cut/paste the following content (in its WYSIWYG form) and the HTML5 <time> tags are not stripped:

Code: Select all

<p>We open at <time>10:00</time> every morning.</p>
I'm using TinyMCE 2.9.12 with CMSMS 1.11.11.