@editora/comments
v1.0.3
Published
Comments plugin for Rich Text Editor - Inline threaded comments with side panel
Maintainers
Readme
@editora/comments
[!IMPORTANT] Live Website: https://editora-ecosystem.netlify.app/
Storybook: https://editora-ecosystem-storybook.netlify.app/
Comments plugin for Editora rich text editor.
What It Does
- Adds inline comment anchors to selected text.
- Opens an editor-scoped comments side panel.
- Supports threaded replies and resolve/reopen actions.
- Supports showing/hiding comments per editor instance.
- Integrates with editor theming and multi-instance behavior.
Installation
npm install @editora/commentsOr bundle install:
npm install @editora/pluginsUsage
import { CommentsPlugin } from "@editora/comments";
const plugins = [CommentsPlugin()];Toolbar Commands
addComment(toolbar label:Add Comment)toggleComments(toolbar label:Show / Hide Comments)
Behavior Notes
addCommentcaptures current selection and opens the panel composer.toggleCommentsopens/closes the panel without losing editor context.- Panel mounting is editor-root scoped for multiple editors on the same page.
Notes
- Public package entry exports
CommentsPlugin.
