Every extension
bold
Parses strong, b, [style: font-weight] · renders strong.
Adding it
import { createEditor, document, paragraph, text, bold } from '@matrajs/core'
const editor = createEditor({
extensions: [document, paragraph, text, bold],
element: document.querySelector('#editor'),
})
There is no separate package · bold 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.toggleBold() -
editor.commands.setBold() -
editor.commands.unsetBold()
Keys
- Mod-b ·
toggleBold
HTML
-
Parses
strongb[style: font-weight] -
Renders
strong