Remove menu and status bars in TinyMCE 4

后端 未结 3 1441
闹比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:11

    So, It is clearly metioned in their docs that to make the values to false.

        tinymce.init({
        menubar: false,
        branding: false,
        statusbar: false,
       })
    

    In the latest update to v5 You can display menubar as such

        tinymce.init({
         menu: {
          edit: { title: 'Edit', items: 'undo redo | cut copy paste pastetext | selectall searchreplace' },
          insert: { title: 'Insert', items: 'image link charmap pagebreak' },
          format: { title: 'Format', items: 'bold italic underline strikethrough superscript subscript | formats | removeformat' },
          table: { title: 'Table', items: 'inserttable tableprops deletetable | cell row column' }
        },
        menubar: 'edit insert format table',
    });
    

    see https://www.tiny.cloud/docs/ for more details

提交回复
热议问题