# zoroeditor5-direction

> Text direction feature for zoroeditor 5.

Latest version **1.0.4** (published 2021-06-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install zoroeditor5-direction
pnpm add zoroeditor5-direction
yarn add zoroeditor5-direction
bun add zoroeditor5-direction
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-06-06 |
| First published | 2021-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | samad.s |
| Maintainers | samad.s |
| Keywords | zoroeditor, zoroeditor5, zoroeditor5-feature, zoroeditor5-plugin |

## Links

- npm: https://www.npmjs.com/package/zoroeditor5-direction
- npm.io page: https://npm.io/package/zoroeditor5-direction

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 1.0.4 (latest) — 2021-06-06
- 1.0.3 — 2021-06-06
- 1.0.1 — 2021-06-02

## README

zoroeditor 5 text direction feature
========================================


```bash
npm install --save zoroeditor5-direction
```

And add it to your plugin list and toolbar configuration:

```javascript
import Direction from 'zoroeditor5-direction/src/direction';

ClassicEditor
    .create( document.querySelector( '#editor' ), {
        plugins: [ Direction, ... ],
        toolbar: [ 'direction', ... ]
    } )
    .then( ... )
    .catch( ... );
```

Use
------------
The Direction feature enables support for text direction. You can use it to set your content direction left to right or right to left.

```javascript
ClassicEditor
    .create( document.querySelector( '#editor' ), {
        toolbar: [
            'heading', '|', 'bulletedList', 'numberedList', 'undo', 'redo', 'direction'
        ]
    } )
    .then( ... )
    .catch( ... );
```

You can choose to use the direction dropdown ('direction') or configure the toolbar to use separate buttons for each of the options:

```javascript
ClassicEditor
    .create( document.querySelector( '#editor' ), {
        toolbar: [
            'heading', '|', 'direction:ltr', 'direction:rtl'
        ]
    } )
    .then( ... )
    .catch( ... );
```

---
_Source: https://npm.io/package/zoroeditor5-direction · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
