Opened 9 years ago

Closed 9 years ago

#5542 closed Bug (duplicate)

textarea class names/ ids containing square brackets in IE

Reported by: lcrudd Owned by:
Priority: Normal Milestone:
Component: General Version: SVN (CKEditor) - OLD
Keywords: Cc: lcrudd@…

Description

Hi,

I have had a few problems when using CKEditor for textareas with IDs/ class names with square brackets in them in Internet Explorer (observed in both 7 & 8). One example is that when I use the CKEDITOR.replace function, with a custom config, on two such textareas, the second one appears to lose its colour. This does not happen in Firefox.

Contents of my HTML file:

<script type="text/javascript" src="/ckeditor/ckeditor.js"></script> <textarea name="text1[copy]" id="text1[copy]">existing text</textarea> <textarea name="text2[copy]" id="text2[copy]">existing text</textarea>

<script type="text/javascript">

CKEDITOR.replace( 'text1[copy]' , {

customConfig : '../ckeditor/configs/config.js', toolbar: 'CMSFull'

});

CKEDITOR.replace( 'text2[copy]' , {

customConfig : '../ckeditor/configs/config.js', toolbar: 'CMSFull'

});

</script>

Contents of my custom config file:

/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */

CKEDITOR.editorConfig = function( config ) {

Define changes to default configuration here. For example: config.language = 'fr'; config.uiColor = '#AADC6E';

config.language = 'fr'; config.uiColor = ' #FFFF00'; config.toolbar_CMSBasic = [

['Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About']

]; config.toolbar_CMSFull = [

['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About']

]; config.toolbar_CMSBoxOut = [

['Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link']

];

};

Thanks.

Attachments (1)

ckeditor-ie7.bmp (826.9 KB) - added by lcrudd 9 years ago.
screenshot

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by lcrudd

Attachment: ckeditor-ie7.bmp added

screenshot

comment:1 Changed 9 years ago by Alfonso Martínez de Lizarrondo

Milestone: CKEditor 3.x
Resolution: duplicate
Status: newclosed

dup of #5045 as those chars need escaping in CSS

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