id summary reporter owner description type status priority milestone component version resolution keywords cc 6720 CKE specific attributes _cke_saved_href and _cke_saved_src not removed from code example if preceded by or Martijn Vermeulen Alfonso Martínez de Lizarrondo "We use CKEditor as the editor in Drupal 6.x for one of our projects. One of the features of the website is showing code examples to visitors. As the website has to comply with the [http://www.webguidelines.nl Web Guidelines for the Dutch government] (which are based on WCAG1) the use of elements is abundant. This is where a problem arises: CKEditor adds _cke_saved_href and _cke_saved_src attributes in the code examples if the code sample (which is between
 tags) is preceded by  or  elements.

I've downloaded CKEditor and reproduced this problem by editing one of the samples to reflect this situation.

In divreplace.html I've created this 
: {{{
<a href="#" onclick="window.open('http://domein.nl/pagina', '_blank');">
HTML
<a href="#" onclick="window.open('http://domein.nl/pagina', '_blank');">
HTML
<a href="#" onclick="window.open('http://domein.nl/pagina', '_blank');">
<a href="#" onclick="window.open('http://domein.nl/pagina', '_blank');">
}}} This results in the following content of the CKEditor: {{{ HTML HTML }}} As you can see the first line of example code is OK; no _cke_* attributes are added. The second and third line of example code get ""polluted"" with _cke_* attributes. The fourth line is ok again (only the first line of example code after a or element is affected). The problem is with the href AND the src attributes and occurs in all browsers I've tried (IE8, FF3, Chrome7). We've temporarely fixed the output to visitors by removing the _cke_* attributes before content is saved to the database, but we would very much like this to be fixed in the CKEditor itself. Kind regards, Martijn" Bug closed Normal CKEditor 3.4.3 General 3.4.2 fixed