开发者

Multiple CKEditors with different height

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜