Features of the React editor
A visual tour of the Post Canvas React rich text editor: menus, mentions, image galleries, collages, YouTube embeds, link cards, presets and HTML output.
Each screenshot below is the real editor, captured from this site. Open the playground to try every switch yourself, or read the guide linked under each part.


Rich text and a toolbar
Headings, bold, italic, underline, strike, code, sub and superscript, links, colours, highlights, alignment, lists, task lists, quotes, tables and code blocks. The toolbar shows what the current preset allows, and Markdown shortcuts work as you type.


Selection menu and slash menu
Select text and a small menu offers the common marks and Turn into. Type / on an empty line to insert any block, and keep typing to filter the list.




Mentions and hashtags
Type @ or # and pick from your own people and tags. The lists come from your API through the mention and hashtag adapters. See Mentions and hashtags.


Photo galleries in four layouts
One gallery block holds several photos and shows them as a carousel, a grid, a masonry wall or a collage. Writers switch layouts from the gallery's own toolbar, reorder photos and add alt text and a caption. See Galleries.








Arrange a collage
In a collage, the first photo is the background and the others sit on it. Arrange the collage lets writers drag each photo into place, resize it and turn it, with a pinch on touch screens.


Video, social embeds and link cards
Paste a link and the editor picks the block. YouTube and Vimeo links become players, and posts from X, Instagram, TikTok and other providers become embeds. By default, players and embeds load only after a click, so nothing from the provider runs until the reader asks for it. Any other link becomes a card, filled in by your link preview adapter. See Embeds and link previews.






Presets for posts, articles and comments
A preset turns on the right parts for the job: social for a post composer, article for long form with a title and a cover, comment for a small reply box, and full for everything. See Presets and features.






Output as JSON, HTML and Markdown
The editor saves Tiptap JSON. renderToHTML() and PostCanvasView show it on your server without the editor, and toMarkdown() and toPlainText() convert it. See Rendering.


Sanitize what the browser sends
sanitizeDocument() uses the same schema as the editor. It removes unsafe links, photos with unsafe sources, nodes the schema doesn't know and bad embed ids, and reports each removal. See Security.


Phone width, and light and dark themes
The editor works at phone width with touch, and follows your light or dark theme through CSS tokens. See Theming.




Not yet
Real-time collaboration, comments, AI features, emoji shortcodes, right-to-left layouts, and Vue and Angular wrappers are not built yet. The roadmap lists them.
Post Canvas: React rich text editor
Post Canvas is an open-source React rich text editor for posts and articles, built on Tiptap, with photo galleries, embeds and sanitized HTML output.
Install Post Canvas
Install the Post Canvas React rich text editor from npm, import its stylesheet, and pick the entry point for the editor, the server and plain HTML pages.