I'm putting CKEditor on a site, and sometimes a user may copy text from another webpages into
CKEditor.
When I look at what CKEditor outputs, however, I notice that the styling info is put in place, but the class name is preserved.
For example, copying info from a page, gives this HTML in the data saved in the database:
<TD VALIGN="top" CLASS="detailJob"><p>
</p>
<p class="header" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; text-transform: uppercase; color: rgb(0, 0, 0); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(153, 153, 153); margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; ">
JOB DESCRIPTION </p>
<div class="job_desc" style="color: rgb(0, 0, 0); ">
Since all of the styling is included in the style tab, we want to remove the class name (in this case, it conflicts with a class name predefined on the site). How do we remove the class tags?
Thanks.
CKEditor.
When I look at what CKEditor outputs, however, I notice that the styling info is put in place, but the class name is preserved.
For example, copying info from a page, gives this HTML in the data saved in the database:
<TD VALIGN="top" CLASS="detailJob"><p>
</p>
<p class="header" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; text-transform: uppercase; color: rgb(0, 0, 0); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(153, 153, 153); margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; ">
JOB DESCRIPTION </p>
<div class="job_desc" style="color: rgb(0, 0, 0); ">
Since all of the styling is included in the style tab, we want to remove the class name (in this case, it conflicts with a class name predefined on the site). How do we remove the class tags?
Thanks.