# TextDirection

Handles default text direction, normally set through Editor textDirection rather than document language attributes.

Handles default text direction, normally set through Editor textDirection rather than document language attributes.

`@quirekit/core` · **MIT**

## Editor compatibility
Layer：**Core built-in**
| Editor | Status | Assembly and boundaries |
| --- | --- | --- |
| Classic | Supported | Installed automatically by the product's Core. Manage it through Core enableCoreExtensions and coreExtensionOptions without duplicates. View-specific event behavior follows the active View. |
| Block | Supported | Installed automatically by the product's Core. Manage it through Core enableCoreExtensions and coreExtensionOptions without duplicates. View-specific event behavior follows the active View. |

“Supported” means the product assembly above exists; interaction, host services and file formats retain their own conditions. See [status and integration rules](/en/plugins/compatibility). Licensing is shown separately.

## Installation

```sh
pnpm add @quirekit/core@alpha
```

Editor installs this built-in by default. Use enableCoreExtensions and coreExtensionOptions instead of adding a duplicate extension.

Use compatible versions available from your distribution source. This site uses the Alpha workspace. License labels come from package metadata; see [support and licensing](/en/support).

## Integration by editor

These snippets use an existing host element named element. The host owns container sizing and persistence; call instance.destroy() on teardown. Avoid duplicating preset capabilities and supply required host ports before installation.

### Classic

Installed automatically by the product's Core. Manage it through Core enableCoreExtensions and coreExtensionOptions without duplicates. View-specific event behavior follows the active View.

### Block

Installed automatically by the product's Core. Manage it through Core enableCoreExtensions and coreExtensionOptions without duplicates. View-specific event behavior follows the active View.

## Configuration

These are extension-level defaults. Presets can override them; they are distinct from current document attributes. See [configuration](/en/plugins/configuration).

### direction

Default text direction applied to nodes and view attributes.

Type：`"auto" | "ltr" | "rtl" | undefined`

Default：`undefined`

## Commands and runtime

This entry declares no directly enumerable commands. Children supply bundle commands; product plugins use contributions or document services.

## Next steps

Return to [all plugins](/en/plugins), or read [configuration](/en/plugins/configuration) to distinguish options, attributes and commands.

See [extension development](/en/build/extension) for custom capabilities and [Build a product](/en/build) for complete hosting.
