Skip to main content

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

CommandDescription
editor42PreviewOpens the preview dialog.

Toolbar buttons

ButtonTypeDescription
previewButtonOpens the preview dialog.
ItemDescription
previewOpens the preview dialog.