Skip to content
QuireKit
Core docs
Alpha · evolving API
API and referenceView Markdown ↗

Editor options and events

Look up creation options, replacement settings and the complete public event map.

Use this page to look up fields, and Editor usage for invocation steps. Signatures come from the public @quirekit/core entry; internal imports are unnecessary.

Creation options

Extensions, Schema and commands are established at creation. setOptions() does not recompile extensions. Mounting through element requires an adapter for the selected mode; omitting the mode selects retained html, rather than native dom.

Register onCreate, onUpdate and similar callbacks through creation options. create fires synchronously during construction, so subscribing after new Editor() returns misses it. Use the callback's editor argument inside onCreate.

@quirekit/coreMIT

Options used to create a QuireKit editor instance.

QuireEditorOptionsts

Content replacement options

setContent() and replaceDocument() share these options. Updates are emitted unless disabled with emitUpdate; enable errorOnInvalidContent explicitly. See content operations for semantics and validation limits.

@quirekit/coreMIT

QuireKit setContent options with explicit Markdown content selection.

QuireSetContentOptionsts

Event map

Events describe state or input facts and do not establish a second mutation channel. transaction includes appendedTransactions. Compare accepted and previous documents to detect content changes, rather than inspecting only the root transaction. setEditable() also emits update by default; see event usage.

@quirekit/coreMIT

Editor events exposed through Tiptap-compatible event methods.

QuireEditorEventsts
QuireKitQuireKit · Core, plugins and Classic docs