# @serdoo/rete-readonly-plugin

> Rete readonly plugin ==== #### Rete.js plugin

Latest version **0.4.1** (published 2022-06-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @serdoo/rete-readonly-plugin
pnpm add @serdoo/rete-readonly-plugin
yarn add @serdoo/rete-readonly-plugin
bun add @serdoo/rete-readonly-plugin
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.1 |
| Published | 2022-06-08 |
| First published | 2022-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 16 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Vitaliy Stoliarov |
| Maintainers | onurakman |

## Links

- npm: https://www.npmjs.com/package/@serdoo/rete-readonly-plugin
- Repository: https://github.com/retejs/readonly-plugin
- Homepage: https://github.com/retejs/readonly-plugin#readme
- Issues: https://github.com/retejs/readonly-plugin/issues
- npm.io page: https://npm.io/package/@serdoo/rete-readonly-plugin

## Recent versions

- 0.4.1 (latest) — 2022-06-08

## README

Rete readonly plugin
====
#### Rete.js plugin

```js
import ReadonlyPlugin from 'rete-readonly-plugin';

 // the plugin creates a 'readonly' and 'isreadonly' events

editor.use(ReadonlyPlugin, { enabled: false }); // enabled is true by default

this.emitter.exist('isreadonly') // check if event exist, i.e. plugin installed

let readonlyEnabled = editor.trigger('isreadonly'); // get readonly state

editor.trigger('readonly', readonlyEnabled); // enable or disable readonly

editor.on('readonly', () => {}) // side effects when turning on / off the read-only mode
```

---
_Source: https://npm.io/package/@serdoo/rete-readonly-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
