I need to have 10 CKEditors in a page, all with the same customized configurations, but 9 of them with height 100, and one with size 250. This i开发者_如何学运维s how I initialize the CKEditors now:
for(var i = 1; i < 9; i++)
CKEDITOR.replace('editor' + i, {
customConfig : 'my_configs/small_box.js'
});
CKEDITOR.replace('editor0', {
customConfig : 'my_configs/small_box.js'
height: 250
});
With this code all I see are text boxes, not the CKEditor instances.
Solution posted on behalf of the OP:
The code was missing a comma.
精彩评论