Function: basic()
ts
function basic(options?): Extension[];The basic editor: paragraphs, headings, bold, italic, underline, strike, inline code, links, lists, blockquotes, line breaks and undo/redo.
Parameters
| Parameter | Type |
|---|---|
options? | BasicOptions |
Returns
Example
ts
basic() // everything, defaults
basic({ strike: false }) // without strikethrough
basic({ heading: { levels: [2, 3] } }) // only H2 and H3
basic({ link: { protocols: ['https'] } }) // https links only