Better Rich Text Buy licence

Track changes and comments.

Two people have already suggested edits and left comments. Accept or reject each change, reply in the margin, or switch author and suggest your own.

Spring field notes
Editing as

Try this.

  • Click a coloured change and accept or reject it from the toolbar
  • Switch to Sam Ortiz and type: your edit arrives as his suggestion
  • Reply to a comment in the margin, or resolve it
  • Use review view to see the document with every change applied

The code.

import { createRichTextEditor, standardPreset } from '@better-rich-text/core';
import { suggestionsPlugin, suggestionsFeature } from '@better-rich-text/plugin-suggestions';
import { commentsPlugin, createCommentsFeature } from '@better-rich-text/plugin-comments';

const editor = createRichTextEditor('#editor', {
  plugins: [suggestionsPlugin, commentsPlugin],
  features: [...standardPreset.features, suggestionsFeature, createCommentsFeature({ sidebar: 'margin' })],
  toolbar: 'undo redo | bold italic | suggest acceptSuggestion rejectSuggestion | comment comments',
});
editor.commands.suggestion.setMode({ enabled: true });

Docs: Suggestions Docs: Comments