The problem I'm currently having trying to get the editor to handle HTML 5 content is that it wants to wrap unknown tags with paragraph tags. If there's a setting that will prevent this, I can't seem to find it.
Otherwise, if you include, at a bare minimum, an HTML 5 CSS reset to provide a few default styles, the editor seems capable of displaying HTML 5 content.
Thanks for your assistance. I wrote my own html5.dtd, but I could not use FCKdtd2js. I receive the following error:
>java -jar FCKdtd2js.jar dtd\html401-strict.dtd
At line 81, column 8: Expected GT instead of NMTOKEN(--)
com.wutka.dtd.DTDParseException: At line 81, column 8: Expected GT instead of NMTOKEN(--)
at com.wutka.dtd.DTDParser.expect(DTDParser.java:311)
at com.wutka.dtd.DTDParser.parseEntityDef(DTDParser.java:916)
at com.wutka.dtd.DTDParser.parseEntity(DTDParser.java:818)
at com.wutka.dtd.DTDParser.parseTopLevelElement(DTDParser.java:262)
at com.wutka.dtd.DTDParser.parse(DTDParser.java:121)
at com.wutka.dtd.DTDParser.parse(DTDParser.java:103)
at net.fckeditor.devutil.dtd.WutkaDTDParser.parseXmlDefinition(WutkaDTDParser.java:30)
at net.fckeditor.devutil.dtd.DTDJsGenerator.run(DTDJsGenerator.java:137)
at net.fckeditor.devutil.dtd.DTDJsGenerator.main(DTDJsGenerator.java:95)
Notice in this example that I'm actually trying to use the tool with one of the existing, included DTDs. I tried absolute paths and everything. Am I doing something wrong?
Sorry, I've never used it, so I can't tell what might be wrong.
Anyway, you must realize the the dtd.js file that it's being used has been manually tuned afterward to reflect extra data so it might be easier try to adjust that file (I don't know, I haven't tried it)
We'll be upgrading to CKEditor 3 in Liferay 6, but we're gonna go ahead and add in the HTML5 support ourselves, since CKEditor doesn't seem interested in updating it within theirs.
I have absolutely no idea. It's really confusing me. We switched to the YUI3 one, but I'd still love to see this, just because I've invested so much time bugging them and even trying to contribute.
Re: HTML5 support
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
Re: HTML5 support
Otherwise, if you include, at a bare minimum, an HTML 5 CSS reset to provide a few default styles, the editor seems capable of displaying HTML 5 content.
- jason
Re: HTML5 support
If I use code like this:
My code is transformed through the WYSIWYG into:
Re: HTML5 support
https://svn.fckeditor.net/FCKdtd2js/trunk/
Re: HTML5 support
Thanks for your assistance. I wrote my own html5.dtd, but I could not use FCKdtd2js. I receive the following error:
Notice in this example that I'm actually trying to use the tool with one of the existing, included DTDs. I tried absolute paths and everything. Am I doing something wrong?
Re: HTML5 support
Anyway, you must realize the the dtd.js file that it's being used has been manually tuned afterward to reflect extra data so it might be easier try to adjust that file (I don't know, I haven't tried it)
Re: HTML5 support
http://dev.fckeditor.net/ticket/4990
Re: HTML5 support
borked
modified ckeditor.jshttp://sandbox.thewikies.com/ck-html5/*mostly properly; some things, like anchor links around block elements, are still not workingunmodified ckeditor.jshttp://sandbox.thewikies.com/ck-html5/sans.html
Re: HTML5 support
Re: HTML5 support
Re: HTML5 support
http://sandbox.thewikies.com/html5-ckeditor/dtd.js
http://dev.fckeditor.net/ticket/4556
Re: HTML5 support
Re: HTML5 support
We're integrating my patch into Liferay v6.0. I don't know why CKEditor did not get this into v3.2.
Re: HTML5 support
Re: HTML5 support
Re: HTML5 support
Re: HTML5 support