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