Skip to main content
Version: Next

Preview Plugin

Modal preview flow for rendered editor content.

Installation and Import

import { PreviewPlugin } from "@editora/plugins";
// or: import { PreviewPlugin } from "@editora/plugins/preview";

Usage

const plugins = [PreviewPlugin()];

Command Matrix

ActionCommandShortcutToolbar
Toggle/open preview modaltogglePreviewNonePreview

Config Options

This plugin does not expose plugin-level config options.

Behavior

  • Displays rendered editor content in overlay/modal
  • Supports overlay-click and Escape-close patterns
  • Keeps underlying editor content unchanged

Validation Checklist

  • Preview reflects latest content state
  • Close actions are stable
  • Modal styling remains theme-compatible