Invalid HTML5 table markup from CKeditor and TinyMCE

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/15/2014 2:57:38 AM
Gravatar
Total Posts 128

Invalid HTML5 table markup from CKeditor and TinyMCE

Not a mojoPortal bug as such, except that it affects both the provided editors... they both like to use border, cellspacing and cellpadding attributes for tables instead of CSS, meaning that with an HTML5 skin pages will not pass W3C validation (without significant extra knowledge and editing by the user to achieve the same effect with CSS).

In TinyMCE this cannot be done without editing the source html, though at least it doesn't add these attributes until you specify values for border, spacing and padding in the table properties. CKEditor emits these attributes as defaults unless you positively clear them, but you can edit the CSS style in the UI.

Is there any way to make these editors more HTML5 compliant?

I've seen this for TinyMCE: http://www.tinymce.com/wiki.php/Configuration:schema and had a nose around the mojo code... finding that the tinymce.init({... script is built in code, and already has script.Append(",schema:'html5'");   Perhaps this would need to be "html5-strict" to prevent it using the obsolete attributes? Perhaps that has downsides? Could/should this be configurable instead of baked in?

I've not found anything for CKEditor, but probably not looked in the right places!

You must sign in to post in the forums. This thread is closed to new posts.