HI,
Version used 3.5.2
I try something like this:
var config = { toolbar : 'Basic' }; var extra = { width : '600px' }; jQuery.extend( config, extra ); CKEDITOR.replace( 'textareaId', config ) ;
this always fails with "Uncaught TypeError: Cannot read property 'length' of undefined" in ckeditor.js.
I also tried:
var config = {}; for( var prop in config1) { config[prop] = config1[prop]; } for( var prop in config2) { config[prop] = config2[prop]; } //or in a for-in loop like for(var prop in config2) { config1[prop] = config2[prop]; }
none work. Why? And how do I make it work?
Thanks in advance.
Regards
On latest CKEditor everything
On latest CKEditor everything works fine when initializing editor like you showed in the first example. So most likely you need to update CKEditor, becasue the 3.5.x branch is very old.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Oh my,
Oh my,
Question to self: "Did you use the latest stable version?"
No I didn't and I should have. Thanks for clearing this up. If the latest version solves this, I consider the question solved as well.
Thanks Piotrek.
Regards
Just to confirm
Just to confirm
I tried it with 4.0.2 and it works great using CKEDITOR.tools.extend(config, extraconfig);