CKEditor& JavaScript - 在CKEditor中调整高度和宽度 [英] CKEditor & JavaScript - Adjust height and width in CKEditor

查看:638
本文介绍了CKEditor& JavaScript - 在CKEditor中调整高度和宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何调整CKEditor的高度?

How can I adjust the height in CKEditor?

这是我的代码CKEditor。

Here is my code for CKEditor.

<script type="text/javascript">
    CKEDITOR.replace( 'content',
        {
            toolbar :
            [
                ['Source'],
                ['Bold','Italic','Underline','Strike'],
            ]
        });
</script>


推荐答案

在参数中添加高度和宽度设置: / p>

Add the height and width setting in the parameters:

CKEDITOR.replace( 'content',
    {
        toolbar :
        [
            ['Source'],
            ['Bold','Italic','Underline','Strike'],
        ],
        height: 300,
        width: 400
    });

这篇关于CKEditor&amp; JavaScript - 在CKEditor中调整高度和宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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