v0.1.3
Patch Changes
- Updated dependencies [00e81c9]
- Updated dependencies [6534e7a]
- @behivetech/atoms.modal@0.4.1
- @behivetech/atoms.icon@0.3.8
A TipTap rich text editor with a toolbar (bold, italic, headings 2 and 3, bulleted and numbered lists, quote, link, image), plus `RichText`, the renderer for the HTML it stores, with print-friendly prose styles.
@behivetech/molecules.rich-text-editor/rich-text entry that exports only RichText. A server component can render stored HTML from it without importing the TipTap editor or its hooks.RichTextEditor, a TipTap editor with a toolbar (bold, italic, headings 2 and 3, bulleted and numbered lists, quote, link through a dialog on Modal, image through an onInsertImage callback), and RichText, which renders the stored HTML with prose styles and print rules. onInsertImage resolves with { src, alt, width?, height? } or a plain address string. Value in and out is HTML; sanitise it on save with the allowlist in the README.