有没有办法强制tinymce只适用于resize垂直领域?水平调整大小时,它会破坏我的布局。
因此,这与默认文本区域resize: vertical;
的工作方式相同。
发布于 2012-09-24 23:09:22
您可以使用:
tinyMCE.init({
// other stuff...
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false
});
发布于 2016-10-28 01:53:02
tinymce.init({
selector: 'textarea', // change this value according to your HTML
resize: true
});
调整大小选项有3个值:
false
:to disable.true
:enable only resize resize'both'
:enable Vertical
resize directions
false
:to disable.true
:enable only resize directions enable both resize directions重要提示:要使其正常工作,您必须启用statusbar
选项,该选项在默认情况下处于启用状态,但如果将其设置为statusbar: false
,则必须重新启用statusbar: true
https://stackoverflow.com/questions/12494306
复制相似问题