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. — at Initial Version

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

Description

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.

Change History (0)

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