#12081 closed Bug (invalid)
Migration Incompatibility from CKeditor 3.x to 4.x
Reported by: | kahshiu | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Editable | Version: | |
Keywords: | Cc: |
Description
html elements correctly rendered in CK 3.x cannot be reproduced in CK 4.x. ie. <tr style='font-weight:bold'><td>something</td></tr> <strong> tag doesnt wrap around the tr element.
Change History (4)
comment:1 follow-up: 2 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.4.1 |
comment:2 Changed 11 years ago by
Replying to j.swiderski:
I'm sorry but this has never been possible. I have checked both versions 3.x and 4.x.
What you are referring to is invalid HTML.The only tags allowed in table are tbody, tfoot and tr. You can't wrap tr in strong tag. Please see: http://www.w3.org/TR/html-markup/table.html#table
What happened was we've already build a number of templates like <tr style="font-weight:bold"><td>something</td></tr> which rendered correctly in 3.x However, when rendered in 4.x, CKEditor tries to interpret these style tags and wrap <Strong> tags around <tr> which fails. Is there a way to have the output rendered as 3.x?
comment:3 follow-up: 4 Changed 11 years ago by
Please read about ACF:
http://ckeditor.com/blog/Upgrading-to-CKEditor-4.1
http://ckeditor.com/blog/CKEditor-4.1-RC-Released
http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter
http://docs.ckeditor.com/#!/api/CKEDITOR.filter-method-addTransformations
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraAllowedContent
http://nightly.ckeditor.com/14-03-20-07-05/full/samples/datafiltering.html
For your particular case this setting will help: extraAllowedContent : 'tr{font-weight}'
I'm sorry but this has never been possible. I have checked both versions 3.x and 4.x.
What you are referring to is invalid HTML.The only tags allowed in table are tbody, tfoot and tr. You can't wrap tr in strong tag. Please see: http://www.w3.org/TR/html-markup/table.html#table