多个不同高度的CKEditor [英] Multiple CKEditors with different height

查看:87
本文介绍了多个不同高度的CKEditor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在一个页面中有10个CKEditor,所有的CKEditor都具有相同的自定义配置,但是其中9个的高度为100,一个的大小为250。这就是我现在初始化CKEditor的方式:

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
    });

使用此代码,我看到的只是文本框,而不是CKEditor实例。

With this code all I see are text boxes, not the CKEditor instances.

推荐答案

代表OP发布的解决方案:

Solution posted on behalf of the OP:

代码缺少逗号。

这篇关于多个不同高度的CKEditor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆