Opened 13 years ago

Last modified 13 years ago

#8398 confirmed Bug

customConfig applied to second instance of CKEditor may apply to both or only one editor.

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone:
Component: General Version: 3.1
Keywords: Cc:

Description (last modified by Jakub Ś)

This issue was reported on our support channel (Multiple instances configuration problem).

Custom cofnig file.

CKEDITOR.editorConfig = function( config )
{ 
 config.skin = 'office2003'; 
 config.startupMode = 'source'; 
};

Settings on HTML page:

OK:

CKEDITOR.replace( 'editor1' ,  {customConfig : 'myconfig.js' });
CKEDITOR.replace( 'editor2');

This applies only to the first editor.

PROBLEM:

CKEDITOR.replace( 'editor1' );
CKEDITOR.replace( 'editor2',  {customConfig : 'myconfig.js' } ); 

This applies either to one or both editors

To reproduce:

  1. Modify replacebycode sample page and JS file
  2. Clear browsers cache
  3. Load replacebycode page

In Firefox. At start only second instance gets updated but if you press CRTL+F5 couple of times quickly options will be applied to both editors

In IE. Simple CRTL+F5 will do. You will get toggling effect. One CRTL+F5 updates both editors and the other only one.

In Webkit and Opera both editors are updated most of the time. Only once I have managed to get state where only one editor was changed – it took a lot of CRTL+F5 of F5 to get it.

Issue has been reproducible from CKEditor 3.1 as I didn’t manage to get customConfig to apply any changes in earlier versions.

Attachments (2)

FF.png (218.3 KB) - added by Jakub Ś 13 years ago.
Two editors updated in firefox
IE9.png (243.9 KB) - added by Jakub Ś 13 years ago.
Two editors updated in IE9

Download all attachments as: .zip

Change History (5)

comment:1 Changed 13 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 13 years ago by Jakub Ś

Description: modified (diff)

Changed 13 years ago by Jakub Ś

Attachment: FF.png added

Two editors updated in firefox

Changed 13 years ago by Jakub Ś

Attachment: IE9.png added

Two editors updated in IE9

comment:3 Changed 13 years ago by Alfonso Martínez de Lizarrondo

I bet that this is a dup of #6504

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy