Opened 15 years ago
Closed 15 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)
Change History (2)
Changed 15 years ago by
Attachment: | ckeditor-ie7.bmp added |
---|
comment:1 Changed 15 years ago by
Milestone: | CKEditor 3.x |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
dup of #5045 as those chars need escaping in CSS
screenshot