Hellio
I have set up two custom config to have two different set of custom toobar.
I have created two instances of the editor , loading the different custom config js.
The toolbar are loaded randomly: sometimes first instance has custom toolbar, sometimes loads the custom config based.
I tried empty cache , several reloads but this strange behavior still continues.
Any idea?
Thanks in advance
Rudy

No code - no ideas ;)
No code - no ideas ;)
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
ah sorry....
ah sorry....
I use CakePHP and I have built in CKeditor.
I create the instances of the editor using a helper which basically simply creates the javascript needed to display the editor in the view .
I have also created two different config files used to create two different toolbar, since I have not yet understand a better way to achieve the possibility of choosing which toolbar use.
Here there is the code of ckeditor_config_Basic
[code]
/**
* @license Copyright (c) 2003-2013, 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 = it;
config.toolbar = [
[ 'Source', '-', 'NewPage', 'Preview', '-', 'Templates','-','Image' ],
[ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ],
[ 'Bold', 'Italic' ]
]
//config.uiColor = '#AADC6E';
};
[/code]
Here there is the javascript created by the helper:
[code]
[/code]
The editor is displayed sometimes corretly and sometimes it loads the basic full toolbar instead.
Thanks again
Rudy
There's a very old bug in the
There's a very old bug in the tracker explaining how to reproduce such problem and a proposed patch, but it has been ignored by the developers and you can bet that the solution can't be applied to the current code without rewritting it all, but it could help you to understand what's going on.
search for something like "race condition" and "config"
Thank you for your reply.
Thank you for your reply.
Ehmm .. where is the search tool?
SORRY FOUND
Thanks Rudy
Alfonso means this ticket
Alfonso means this ticket https://dev.ckeditor.com/ticket/6504
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+