mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fix: WYSIWYG now returns valid HTML in tables
The WYSIWYG by default creates invalid HTML5. Creating a table and running it through W3C validator returns the following error: The border attribute on the table element is obsolete. Use CSS instead.
This commit is contained in:
parent
6ae7d43a5d
commit
169273b38d
@ -14,7 +14,7 @@ HtmlEditorConfig::get('cms')->setOptions(array(
|
|||||||
. "|class],-strong/-b[class],-em/-i[class],-strike[class],-u[class],#p[id|dir|class|align|style],-ol[class],"
|
. "|class],-strong/-b[class],-em/-i[class],-strike[class],-u[class],#p[id|dir|class|align|style],-ol[class],"
|
||||||
. "-ul[class],-li[class],br,img[id|dir|longdesc|usemap|class|src|border|alt=|title|width|height|align|data*],"
|
. "-ul[class],-li[class],br,img[id|dir|longdesc|usemap|class|src|border|alt=|title|width|height|align|data*],"
|
||||||
. "-sub[class],-sup[class],-blockquote[dir|class],-cite[dir|class|id|title],"
|
. "-sub[class],-sup[class],-blockquote[dir|class],-cite[dir|class|id|title],"
|
||||||
. "-table[border=0|cellspacing|cellpadding|width|height|class|align|summary|dir|id|style],"
|
. "-table[cellspacing|cellpadding|width|height|class|align|summary|dir|id|style],"
|
||||||
. "-tr[id|dir|class|rowspan|width|height|align|valign|bgcolor|background|bordercolor|style],"
|
. "-tr[id|dir|class|rowspan|width|height|align|valign|bgcolor|background|bordercolor|style],"
|
||||||
. "tbody[id|class|style],thead[id|class|style],tfoot[id|class|style],"
|
. "tbody[id|class|style],thead[id|class|style],tfoot[id|class|style],"
|
||||||
. "#td[id|dir|class|colspan|rowspan|width|height|align|valign|scope|style],"
|
. "#td[id|dir|class|colspan|rowspan|width|height|align|valign|scope|style],"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user