Every extension
strike
Parses s, del, [style: text-decoration] · renders s.
Adding it
import { createEditor, document, paragraph, text, strike } from '@matrajs/core'
const editor = createEditor({
extensions: [document, paragraph, text, strike],
element: document.querySelector('#editor'),
})
There is no separate package · strike 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.toggleStrike()
Keys
- Mod-Shift-x ·
toggleStrike
HTML
-
Parses
sdel[style: text-decoration] -
Renders
s