当前位置: 首页 > 文档资料 > tinyMCE 帮助文档 >

Preview plugin

优质
小牛编辑
128浏览
2023-12-01

This plugin adds a preview button to the toolbar. Pressing the button opens a dialog box showing the current content in a preview mode. It also adds a menu item Preview under the File and View menu dropdowns.

Type: String

Example
tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  plugins: "preview",
  menubar: "view",
  toolbar: "preview"
});