Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#10545 closed Bug (invalid)

Data processor removes not alphanumeric strings

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

Description

refering to this ticket:

http://dev.ckeditor.com/ticket/10298

this is not fixed.

i experience the same problem with

element.addClass('cke_blabla')
element.attributes.add('class','cke_blabla')
editor.insertHtml('<div class="cke_blabla">dfgdfg</div>')

those class names are removed

Change History (2)

comment:1 Changed 6 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

Class names starting with "cke_" are classes used by CKEditor. Editor uses them in WYSIWYG and removes when you e.g. switch to source mode. Please treat them like reserved keyword and use other namespace e.g. "mycke_".

If you still get Problems with classes 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

comment:2 in reply to:  1 Changed 6 years ago by giammin

Replying to j.swiderski:

Class names starting with "cke_" are classes used by CKEditor. Editor uses them in WYSIWYG and removes when you e.g. switch to source mode. Please treat them like reserved keyword and use other namespace e.g. "mycke_".

if it is not an issue (although, I think it is because in my plugin I was using the same ckeditor css naming convention and I can't) it should be mentioned in the documentation AFAIK

Last edited 6 years ago by giammin (previous) (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy