Multiple CKEditors with different height

梦想的初衷 提交于 2019-12-12 01:49:18

问题


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 is 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.


回答1:


Solution posted on behalf of the OP:

The code was missing a comma.



来源:https://stackoverflow.com/questions/7658325/multiple-ckeditors-with-different-height

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!