gpt4 book ai didi

jquery - Tinymce - 从菜单中删除 'FIle' 选项

转载 作者:太空宇宙 更新时间:2023-11-03 23:00:39 25 4
gpt4 key购买 nike

有谁知道如何从菜单栏中删除"file"选项。

enter image description here

我试过这种方式:

menu: {
edit: {title: 'Edit', items: 'undo redo | cut copy paste pastetext | selectall'},
view: {title: 'View', items: 'visualaid'},
}

它可以工作,但我想保留菜单中除"file"之外的所有选项。

有没有一种方法可以指定菜单中我们不需要需要的内容,而不是指定每个菜单选项及其子选项?

类似“删除”的东西?

请提出建议。

提前致谢!!

最佳答案

您可以使用 menubar 配置它 option .

tinymce.init({
selector: 'textarea', // change this value according to your HTML
menubar: 'edit insert view format table tools' // skip file
});

关于jquery - Tinymce - 从菜单中删除 'FIle' 选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36687308/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com