开发者

Multiple CKEditors with different height

开发者 https://www.devze.com 2023-04-11 09:07 出处:网络
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:

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

精彩评论

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

关注公众号