TinyMCE4 相当于外部工具栏位置? [英] TinyMCE4 equivalent of toolbar location external?
问题描述
在 TinyMCE 3 中,您可以使用 theme_advanced_toolbar_location = 'external'
在 mce 设置中,创建一个 class=mceExternalToolbar 元素.
In TinyMCE 3 you can use theme_advanced_toolbar_location = 'external'
in mce settings, making a class=mceExternalToolbar element.
但是,TinyMCE 4 似乎没有完全等效的东西.我是不是遗漏了什么,或者是向下滚动时粘在顶部的外部工具栏,在 TinyMCE 4 中不容易实现?
However, there doesn't seem to be an exact equivalent for TinyMCE 4. Am I missing something, or is an external toolbar that sticks to top when scrolling down, not easily doable in TinyMCE 4?
推荐答案
在 TinyMCE 3 中,theme_advanced_toolbar_location"是高级"主题的主题选项,是官方主题之一(另一个很简单,你可以在文件夹 tiny_mce\themes 中看到这 2 个主题)
In TinyMCE 3, "theme_advanced_toolbar_location" is a theme option of the "advanced" theme, which is one of the official themes(the other is simple, you can see these 2 themes in folder tiny_mce\themes)
但是在 TinyMCE 4 中,没有高级"主题,而是现代"主题作为默认主题,对于这个主题,有一个内联"选项,相当于旧的外部".
But in TinyMCE 4, there's no "advanced" theme, but a "modern" theme as the default one, with this theme, there's an "inline" option, which is the equivalent of the old "external".
tinymce.init({
//this will make the toolbar "external"
inline : true,
//.....
});
http://www.tinymce.com/wiki.php/Inline
http://www.tinymce.com/tryit/inline.php
这篇关于TinyMCE4 相当于外部工具栏位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!