简体   繁体   English

如何在Ext Js 4中设置TinyMce编辑器的高度?

[英]How to set height of TinyMce editor in Ext Js 4?

I am using TinyMce editor with Ext Js 4.1. 我在Ext Js 4.1中使用TinyMce编辑器。 It's works fine but problem is that initially height is more than I specify in view but after change tab two times it's look fine. 效果很好,但问题是,最初的高度超过了我在视图中指定的高度,但是在两次更改选项卡之后看起来都很好。 can any one guess what is the problem with height? 谁能猜出身高有什么问题?

for your information : more than one TinyMce editor object and all are in model window with anchor layout with 100% anchor. 供您参考 :多个TinyMce编辑器对象均位于带有锚定布局且具有100%锚定的模型窗口中。

Looks like you should set 看起来你应该设置

        width: 600,
        height: 500,

to the editor itself: 给编辑器本身:

            items: [
            {
                xtype: "tinymce",
                tinymceSettings: {
                    theme : "advanced",
                    ...
                    width: 600,
                    height: 500,
                    ...
                },
                value: "<h1>Demo</h1><p>Ext.ux.TinyMCE works...</p>"
            }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM