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

Core API

Generated from the public TypeScript exports of @quirekit/core.

Signatures come from current source, with Chinese descriptions checked against JSDoc. Read quick start and extensions before looking up an entry. Documents, selection, commands and lifecycle belong to the same Editor instance.

Import Editor, Extension, Node and Mark from the public entry. Generated signatures retain source declaration names such as QuireEditor; these refer to the same exports.

Start with task-oriented Editor usage, extension contracts, View options or product APIs; this page retains complete source signatures.

Editor

@quirekit/coreMIT

Coordinates editor state, extensions, and command execution.

Editorts

Extension definitions

@quirekit/coreMIT

Base class for Tiptap-compatible behavior-only QuireKit extensions.

Extensionts
@quirekit/coreMIT

Tiptap-compatible class for node-owning QuireKit extensions.

Nodets
@quirekit/coreMIT

Tiptap-compatible class for mark-owning QuireKit extensions.

Markts

Command descriptions and attributes

@quirekit/coreMIT

Declares a command with an Agent-facing description. The result is still the command factory Tiptap expects from `addCommands()`; the description rides on the function, so merging and overriding commands by name keep each description with its implementation. @param definition - Description and the command factory. @returns A command factory carrying the frozen description.

defineCommandts
@quirekit/coreMIT

Merges HTML attributes the way extension render callbacks usually expect: classes are deduplicated, styles are merged by CSS property, and later non-special attributes replace earlier values. @param objects - Attribute objects to merge from left to right. @returns Merged HTML attribute object.

mergeAttributests
QuireKitQuireKit · Core, plugins and Classic docs