Salmon UI Editors documentation
Every page below embeds live demos; each demo also has a standalone route.
Components
- Inline edit
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
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
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
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
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
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
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
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
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
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
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
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
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
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.