Remove menu and status bars in TinyMCE 4

后端 未结 3 1421
闹比i
闹比i 2020-12-13 01:44

I am trying to remove the menu and status bars from TinyMCE 4 because I want to setup a very basic editor. Is this possible?

The documentation for TinyMCE 3 does not

3条回答
  •  囚心锁ツ
    2020-12-13 02:13

    If you want to remove entire Menu bar from top

    tinymce.init({
        menubar: false,
    
    });
    

    But if you want Custom menubar with some submenu

    tinymce.init({
        menu: {
            file: {title: 'File', items: 'newdocument'},
            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: 'spellchecker code'}
        }
    });
    

    see TinyMCE for more help.

提交回复
热议问题