Opened 12 years ago
Closed 12 years ago
#10287 closed Bug (invalid)
Ck Editor - Issues
Reported by: | gvvsnreddy | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
Recently updated FCK Editor to Ck Editor 4. My client have lots of HTML Campaigns with the below sample code spinet.
When I copy the below code and past it into my editor then I will got Only <p> </p><style type="text/css"></style> (May be issues with Comments that are not closed properly)
IS there any way to auto prevent this type of formatting?
Can you please let me know
My Code:
<p> </p> <style type="text/css"> <!--
.caddress { font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 18px; font-weight:bold; color:#00457b;
} }</style></p>
<table id="Table_01" border="0" cellspacing="0" cellpadding="0" width="598" align="center" height="1065" style="border-bottom: #03447c 1px solid; text-align: center; border-left: #03447c 1px solid; border-top: #03447c 1px solid; border-right: #03447c 1px solid">
<tbody>
<tr>
<td bgcolor="#00457b" colspan="5">Test</td>
</tr> </tbody> </table>
Thanks in Advance
I assume we are discussing CKE 4.1
There are couple of mistakes
}}
for style class</p>
which results in extra paragraphYou can't paste invalid code into editor and expect to work in every case. Sure that editor tries to fix the code but sometimes this fixing may finish with unexpected results. One should always use valid HTML.
Please note that in CKE 4.1 we have introduced ACF : http://ckeditor.com/blog/CKEditor-4.1-RC-Released, http://docs.ckeditor.com/#!/guide/plugin_sdk_integration_with_acf, http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter, http://ckeditor.com/blog/Upgrading-to-CKEditor-4.1.
You can disable it by setting allowedContent:ture but you can also experiment and allow contents of your choice.
Your code should be something like this
Anyway I'm closing this ticket as this isn't bug report and this isn't forum or support site.