Skip to content
QuireKit
Plugin docs
Alpha · evolving API
Plugin overviewView Markdown ↗

Configure plugins

Choose the installation layer and distinguish options, document attributes, commands and runtime state.

Suppose your product only allows level-one and level-two headings. Heading's levels option determines which levels the editor accepts. Turning the current paragraph into a level-two heading uses the runtime toggleHeading command. These happen at different stages.

Choose the installation layer

Check the Classic and Block statuses and required presets at the top of each reference. Choose an editor and integration explains those statuses independently of licensing.

What you installWhere it belongsExamples
Nodes, marks, behavior and View registrationCore extensionsHeading, Link, Search, canvasViewExtension
A bundle of Core extensionsCore extensionsStarterKit, TextStyleKit
Product menus, sidebars and file servicesClassic pluginscreateClassicWordDocxPlugin, createClassicEditorPdfPlugin
A complete product assembly policyClassic presetcreateClassicWordPreset, createClassicWordProPreset
Block content and graphic workspace optionsThe createBlockEditor preset options objectstarterKit, flowchart, mindMap
Additional Block capability arraysSpread into createBlockEditor extensionscreateBlockTableExtensions, createBlockNumberingExtensions

An extension with Classic in its name may still be a Core Extension, such as ClassicWordTable. Follow each page's installation instructions rather than inferring the contract from its name.

Configure a bundled plugin

StarterKit already includes Heading. Configure that child instead of adding another Heading.

ts

Pass this array to Editor extensions. Parsing, commands and shortcuts accept only those two levels. Your toolbar should offer the same levels.

To supply a replacement with the same name, disable the preset child first. Only use false when the option type allows it.

ts

Choose one approach. These are focused assembly changes; Quick start explains the container and mounting lifecycle.

Separate options from content

ValueLifetimeExample
Extension optionsExtension creation/assemblyHeading levels
Node and mark attributesCanonical document, changed through commandsA heading's level, a link's href
StorageEditor-local runtime state/readerscharacterCount.characters()
Host servicesCreated and released by the applicationProofing provider, graphic workspace, transport

.configure() returns a configured extension copy. It does not reconfigure an already mounted editor in place. Changing an options object also does not rewrite existing heading content; use commands to change the document.

ts

A false command result must not produce success feedback. For example, a Heading configured for levels one and two rejects level: 3. Connect editor.can(), editor.isActive() and transaction subscriptions to your controls; see commands and controls.

Try the configured behavior

This example accepts levels one and two. Apply level two, then try level three: the latter fails while preserving the document. Source files contain only this example's creation, controls and cleanup.

Preparing the example…

Read defaults in context

Each reference documents that entry's own defaults. A preset may override them: Proofing directly defaults provider to null, while the complete Word kit can choose a default proofing service. Read the assembly layer you actually use.

undefined means no explicit option; children or host assembly may still choose a fallback. StarterKit enables children by default, accepts an options object to configure a child, and disables it with false.

null often means an absent service, such as a graphic open port or proofing provider. It does not trigger an automatic network service. Each reference explains the ports it requires.

Complete the integration

A document model does not automatically supply product UI or support every View and export format. Check the relevant View, required graphic/proofing/collaboration services, and persistence/export behavior.

Use all plugins to find a capability. Follow Build a product for complete assembly and product plugin development for file-service integration.

QuireKitQuireKit · Core, plugins and Classic docs