Opened 2 years ago

Last modified 2 years ago

#16663 confirmed Bug

Case sensitive class not applied on Chrome

Reported by: Daniel Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: 4.0
Keywords: Cc:

Description

For any extrange reason, dynamically added styles to editor with camel case are not being applied to content elements.

Steps to reproduce

On a clean CKEditor download

  1. Edit config.js and add those lines before the "editorConfig" function:

var cssStylesContenidoInteractivo = [ '.interElem { background:#dddddd; }' , ].join( ).replace(/;/g, ' !important;' ); CKEDITOR.addCss( cssStylesContenidoInteractivo );

  1. Comment the config.removeDialogTabs config option (to be able to assign a class)
  2. Open the editor on Chrome, create a link and set its style to "interElem". The style will not be applied. In the other hand, if you apply the style "interelem" (lower case) the style is applied.

Expected result

class interElem to be applied to the element

Actual result

class interElem is not applied to the element

Other details (browser, OS, CKEditor version, installed plugins)

It happens in Chrome, in different Windows installations, tested with CKEditor 4.3.3 and 4.5.11

Attachments (1)

ckeditor_4_5_11.rar (1.1 MB) - added by Daniel 2 years ago.
CKEditor with the commented configuration

Download all attachments as: .zip

Change History (4)

Changed 2 years ago by Daniel

Attachment: ckeditor_4_5_11.rar added

CKEditor with the commented configuration

comment:1 Changed 2 years ago by Tade0

Status: newconfirmed

comment:2 Changed 2 years ago by Tade0

Version: 4.3.3

comment:3 Changed 2 years ago by Jakub Ś

Version: 4.3.34.0

Problem can be reproduced at least from CKEditor 4.0.0.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy