TinyMCE 是一个采用 JavaScript 编写的、轻量级的、基于浏览器的、所见即所得编辑器。
从 2024 年初开始,我们云平台上的所有编辑者都需要拥有有效的 API 密钥。如果没有有效的 API 密钥,您的编辑器将转换为只读模式
How to add a scrollbar to the TinyMCE editor
window.tinymce.init({
selector: '#Content',
// 确保在 plugins 中启用了 autoresize 插件
plugins: 'autoresize',
// 最小高度:200像素
autoresize_min_height: 200,
// 最大高度:500像素(用这个代替你原本错误的 mheight)
autoresize_max_height: 500,
// 选填:如果你想让内容距离编辑器底部留出一点距离
autoresize_bottom_margin: 20
});必须启用 autoresize 插件: autoresize_min_height 和 autoresize_max_height 只有在 plugins 列表中包含了 'autoresize' 时才会生效。
如果没有使用 autoresize 插件: 如果你不需要编辑器随内容自动拉伸,只想给它一个固定的初始高度,那么应该使用标准参数 height:
window.tinymce.init({
selector: '#Content',
height: 500 // 固定高度为 500px,超出后内部出现滚动条
});https://www.tiny.cloud/blog/textarea-scrollbar/
