Skip to content

Commit

Permalink
Add setEditable to the documentation of Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrueger authored Nov 25, 2021
1 parent b37b092 commit d59ce5c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/api/editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ editor.setOptions({
},
})
```

### setEditable()
Update editable state of the editor.

| Parameter | Type | Description |
| --------- | ------- | ------------------------------------------------------------- |
| editable | boolean | `true` when the user should be able to write into the editor. |

```js
// Make the editor read-only
editor.setEditable(false)
```

### unregisterPlugin()
Unregister a ProseMirror plugin.
Expand Down

0 comments on commit d59ce5c

Please sign in to comment.