# Salmon UI Editors documentation

> Guides with live demos for the Editors components.

Canonical: https://salmonui.dev/docs/editors

## Components

- [Inline edit](https://salmonui.dev/docs/editors/inline-edit.md): Click-to-edit values - popover or inline editing, click, double-click or edit-button triggers, an async save action with pending, abort and error states, Data Grid validation rules and a ref API.
- [Rich Text Editor](https://salmonui.dev/docs/editors/rich-text-editor.md): RichTextEditor from @salmonui/rich-text - an HTML editor on ProseMirror that server-renders its value, with toolbars, quick toolbars, tables, media uploads through callbacks, find and replace, source view, mentions and a streaming AI hook.
- [Block Editor](https://salmonui.dev/docs/editors/block-editor.md): BlockEditor - a block-based editor with a JSON value, slash menu, selection toolbar, drag handles and block menus, mentions and labels, paste cleanup, undo, server rendering and opt-in Yjs collaboration.
- [Markdown editor](https://salmonui.dev/docs/editors/markdown-editor.md): A Markdown source editor on a native textarea - a formatting toolbar of pure text commands that keep native undo, shortcuts, link / image / table dialogs, an app-supplied preview, uploads, a count and fullscreen.
- [Image editor](https://salmonui.dev/docs/editors/image-editor.md): A zero-dependency Canvas 2D image editor - crop, rotate, straighten, flip, resize, zoom and pan, finetune, filter presets, frames, shape / text / freehand / image annotations, redaction, undo and redo, and export to a Blob.
- [Rich Text Content](https://salmonui.dev/docs/editors/rich-text-content.md): RichTextContent - renders stored rich text HTML or BlockEditor blocks read-only, sanitized, with identical markup on the server and the client and no editor engine.
- [PDF Viewer](https://salmonui.dev/docs/editors/pdf-viewer.md): PdfViewer from @salmonui/pdf-viewer - a PDF viewer on pdf.js loaded lazily on the client, with virtualized pages, thumbnails, bookmarks, find, zoom, print, text markup annotations, form filling and save, plus server-rendered placeholders.

## Guides

- [HTML Sanitizer and Paste Cleanup](https://salmonui.dev/docs/editors/html-sanitizer-and-paste.md): The always-on, server-safe allow-list sanitizer of the rich text editors, its restriction-only hook, and paste cleanup for Word, Google Docs and plain text.
- [Headless Editor](https://salmonui.dev/docs/editors/headless-editor.md): The ProseMirror engine behind RichTextEditor and BlockEditor - loaded on demand, usable without React, with typed commands, HTML in and out, and the extensions API for nodes, marks, plugins, keys, input rules, commands and toolbar items.

## Recipes

- [Modern Rich Text Editor](https://salmonui.dev/docs/editors/modern-rich-text-editor.md): Recipe - a modern rich text editing experience with RichTextEditor - a floating selection toolbar, the slash menu, mentions, Markdown shortcuts, block editing and collaboration.

## Integration guides

- [DOCX Editor](https://salmonui.dev/docs/editors/docx-editor.md): Integration guide - edit Word documents by embedding ONLYOFFICE Docs or Collabora Online next to Salmon UI components; Salmon UI ships no DOCX component and no private document format.
- [PPTX Editor](https://salmonui.dev/docs/editors/pptx-editor.md): Integration guide - show PowerPoint decks by converting PPTX to PDF on the server (LibreOffice headless or a document server) and viewing the result with PdfViewer, including a one-slide-at-a-time slide show.
- [Spreadsheet](https://salmonui.dev/docs/editors/spreadsheet.md): Integration guide - Salmon UI has no Spreadsheet; use the Data Grid's Excel-like range selection, fill handle, clipboard, editing and Excel export for tabular work, or embed a spreadsheet product for real workbooks with formulas.
- [JavaScript PDF Library](https://salmonui.dev/docs/editors/javascript-pdf-library.md): Integration guide - Salmon UI is a component library and ships no PDF document SDK; create, merge, fill, sign or redact PDFs with a library your application chooses, then show the result with PdfViewer.
