Preview plugin
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.
Basic setup
tinymce.init({
selector: 'textarea', // change this value according to your HTML
plugins: 'preview',
toolbar: 'preview'
});
Toolbar buttons
The Preview plugin provides the following toolbar buttons:
| Toolbar button identifier | Description |
|---|---|
|
Previews the current editor contents. |
These toolbar buttons can be added to the editor using:
-
The
toolbarconfiguration option. -
The
quickbars_insert_toolbarconfiguration option.
Menu items
The Preview plugin provides the following menu items:
| Menu item identifier | Default Menu Location | Description |
|---|---|---|
|
File |
Previews the current document. |
These menu items can be added to the editor using:
-
The
menuconfiguration option. -
The
contextmenuconfiguration option.