Every extension
highlight
Parses mark · renders mark.
Adding it
import { createEditor, document, paragraph, text, highlight } from '@matrajs/core'
const editor = createEditor({
extensions: [document, paragraph, text, highlight],
element: document.querySelector('#editor'),
})
There is no separate package · highlight is already in @matrajs/core, and an extension you do not import is not in your bundle. document, paragraph and text are the floor every document needs.
Commands
-
editor.commands.toggleHighlight() -
editor.commands.unsetHighlight()
Keys
- Mod-Shift-h ·
toggleHighlight
Attributes
-
color
HTML
-
Parses
mark -
Renders
mark