Tinymce - 限制 "format" 下的选项

Tiny MCE - Restrict the options under "format"

工具栏中的 "Format" 选项包含如下选项:

我想知道如何删除此 "format" 下拉列表下的所有/任何选项。 就像我想删除粗体、斜体、下划线。

求推荐。

非常感谢!

您可以从您的 init 中控制菜单。例如,您可以这样做:

menu : {
    file   : {title : 'File'  , items : 'newdocument print'},
    edit   : {title : 'Edit'  , items : 'undo redo | cut copy paste pastetext | selectall'},
    insert : {title : 'Insert', items : 'link media | template hr'},
    view   : {title : 'View'  , items : 'visualaid'},
    format : {title : 'Format', items : 'bold italic underline strikethrough superscript subscript | formats | removeformat'},
    table  : {title : 'Table' , items : 'inserttable tableprops deletetable | cell row column'},
    tools  : {title : 'Tools' , items : 'code'},
},
menubar: 'file edit format table tags'

因此,如果您从格式菜单的 'items' 列表中删除正确的选项,它们将不会出现在编辑器中。