Opened 11 years ago

Closed 11 years ago

#10287 closed Bug (invalid)

Ck Editor - Issues

Reported by: gvvsnreddy Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


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>&nbsp;</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>&nbsp;</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">



<td bgcolor="#00457b" colspan="5">Test</td>

</tr> </tbody> </table>

Thanks in Advance

Change History (1)

comment:1 Changed 11 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

I assume we are discussing CKE 4.1

There are couple of mistakes

  1. Unclosed comments
  2. Double }} for style class
  3. unopened </p> which results in extra paragraph

You 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 :,!/guide/plugin_sdk_integration_with_acf,!/guide/dev_advanced_content_filter,

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

<style type="text/css"><!--

.caddress { font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;

    font-size: 18px; font-weight:bold; color:#00457b;

} -->
<table align="center" border="0" cellpadding="0" cellspacing="0" height="1065" id="Table_01" style="border-right: #03447c 1px solid; border-top: #03447c 1px solid; border-left: #03447c 1px solid; border-bottom: #03447c 1px solid; text-align: center" width="598">
			<td bgcolor="#00457b" colspan="5">Test</td>

Anyway I'm closing this ticket as this isn't bug report and this isn't forum or support site.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy