TinyMCE定制“文件”菜单栏 [英] TinyMCE customize "file" menubar
问题描述
有没有办法自定义(添加和删除选项,e.t.c ..)在TinyMCE 4.0的菜单?我无法找到关于编辑器的特定部分的任何文档。下面的图片演示了我在说的部分。
通过实验,我发现可以启用/禁用
仅启用特定下拉菜单:
tinymce.init({
selector:textarea,
menubar:edit format
});
禁用菜单:
tinymce.init({
selector:textarea,
menubar:false
});
menubar配置文档已添加到TinyMCE网站。
此外,如果您想完全自定义整个菜单,请查看菜单配置文档。
Is there a way to customize (add and remove options, e.t.c..) the menubar in TinyMCE 4.0? I am unable to find any documentation on that specific part of the editor. The image below demonstrates the part I'm talking about.
Version 4 is a major rewrite and the docs were out of sync for a while.
Through experimentation, I discovered that it is possible to enable/disable the drop-downs individually or disable the whole menubar.
Enable specific drop downs only:
tinymce.init({
selector: "textarea",
menubar: "edit format"
});
Disable menubar:
tinymce.init({
selector: "textarea",
menubar: false
});
The menubar configuration docs have now been added to TinyMCE site.
Also, if you want to completely customize the whole menu, check out the menu configuration docs.
这篇关于TinyMCE定制“文件”菜单栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!