API / @aionbuilders/nabu

createDocumentEditor

Function Stability: stable

Paragraph + headings + rich text. Good for articles, notes.

Related guide: Presets →

Signature

TypeScript
import { createDocumentEditor } from '@aionbuilders/nabu';
TypeScript
function createDocumentEditor(options?: EditorOptions): Nabu

Parameters

Parameters of createDocumentEditor
ParameterTypeDefaultDescription
optionsoptionalEditorOptions{}

every NabuInit option (files, snapshot, keymap…) and extra extensions

Returns

Nabu

Source: src/lib/presets.js:105