您可以在启动时(仅)设置编辑器的高度和宽度 - 有配置选项height
和width
.
请参阅:CKEditor & JavaScript - 在 CKEditor 中调整高度和宽度
如果您想将高度(也可能还有宽度)设置为百分比,那么这个CKEditor 3.0 高度可能会很有趣。
更新:
巧合的是,我今天发现了这个:
/**
* Resizes the editor interface.
* @param {Number|String} width The new width. It can be an pixels integer or a
* CSS size value.
* @param {Number|String} height The new height. It can be an pixels integer or
* a CSS size value.
* @param {Boolean} [isContentHeight] Indicates that the provided height is to
* be applied to the editor contents space, not to the entire editor
* interface. Defaults to false.
* @param {Boolean} [resizeInner] Indicates that the first inner interface
* element must receive the size, not the outer element. The default theme
* defines the interface inside a pair of span elements
* (<span><span>...</span></span>). By default the
* first span element receives the sizes. If this parameter is set to
* true, the second span is sized instead.
* @example
* editor.resize( 900, 300 );
* @example
* editor.resize( '100%', 450, true );
*/
CKEDITOR.editor.prototype.resize = function( width, height, isContentHeight, resizeInner )
这意味着我认为编辑器的大小只能在启动时设置是不对的,但是它也不会为问题添加任何内容:)。