Blocks
Anchor Link Plugin
Anchor Link Plugin
Insert anchors and links to sections (auto-generate ID from selection if empty).
- The
#button opens a popup with Anchor ID and Text - Inserts an
.anchor-linkat the current cursor position
Installation
npm install on-codemerge
Basic Usage
import { Editor, AnchorLinkPlugin } from 'on-codemerge';
import 'on-codemerge/index.css';
import 'on-codemerge/public.css';
const editor = new Editor(container, {
plugins: [AnchorLinkPlugin()],
});
How It Works
- Select a phrase in the document
- Click
#in the toolbar → fill Anchor ID and Text → Insert
Demo
Footnotes
The Footnotes Plugin provides comprehensive footnote management for the on-CodeMerge editor, allowing users to create, edit, and manage footnotes with automatic numbering and formatting.
Footer
The Footer Plugin automatically adds a statistics footer to the on-CodeMerge editor, displaying real-time document statistics including word count, character count, and other metrics.