Preview
Plugin alias: preview
editor42.init({
plugins: 'preview'
});
Opens a modal dialog containing a sandboxed iframe that renders a full HTML preview of the current editor content. The preview includes the editor's content CSS, inline content styles, body class/id, and a script that prevents accidental link navigation.
Options
This plugin does not register its own options. It reads the core options content_style, content_css_cors, body_class, and body_id.
Commands
| Command | Description |
|---|---|
editor42Preview | Opens the preview dialog. |
Toolbar buttons
| Button | Type | Description |
|---|---|---|
preview | Button | Opens the preview dialog. |
Menu items
| Item | Description |
|---|---|
preview | Opens the preview dialog. |