Skip to content

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 ​

ParameterType
options?BasicOptions

Returns ​

Extension[]

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