#10693 closed Bug (invalid)
Problem with Table BGCOLOR option
Reported by: | Jim | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Tables | Version: | 4.2 |
Keywords: | Cc: |
Description
Working with a table from a website which has the following elements.
<TABLE width="100%"> <TR>
<TD BGCOLOR="#CCCCCC">Hello</TD> <TD>Notice that the grey never displays</TD>
</TR> </TABLE>
I tried the settings of allowing content as well as Paste from Word which doesn't apply. The CKEditor is the latest stable build July 18th, 2013 and I tried the latest build as well. This used to work in version 4.0.1 fine. Also previously in CKEDITOR.
Valid solutions are:
- Support BGCOLOR tag attribute.
- Perform an inline replacement on the fly of a valid attribute.
I tried to keep the example problem as simple as possible to demo
Change History (3)
comment:1 Changed 11 years ago by
Keywords: | BGCOLOR table missing removed |
---|---|
Resolution: | → invalid |
Status: | new → closed |
comment:2 Changed 11 years ago by
I have used allowedContent: true and it did not work at all. I used the sample editor of replace by class and replace textarea to keep things simple. I have reviewed the sections you list above prior to opening the ticket and none of them addressed the issue.
In previous releases this did work for the table element using the demo code with no changes at all. Do you have a sample which works using the demo code provided for replace class or replace textarea? The files I am working with are "replacebycode.html" and "replacebyclass.html"
comment:3 Changed 11 years ago by
In replacebycode sample I have used below:
var editor = CKEDITOR.replace( 'editor1', { allowedContent : true });
Next I have pasted your code in source and it worked. I assume that you haven't inserted this option correctly on page or you have inserted it incorrectly in config.js or you have inserted in in config.js but haven't refreshed cache.
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
You can disable it with
allowedContent : true
, you can add transformation (replacement on the fly) and add this attribute in extraAllowedontent.