Skip to main content
Version: 1.0.0

Preview Plugin

PreviewPlugin opens a modal preview for active editor content.

Install 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