mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-28 23:59:25 +08:00
Add setEditable
to the documentation of Editor
(#2199)
This commit is contained in:
parent
b37b0921dd
commit
62197ce459
@ -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()
|
### unregisterPlugin()
|
||||||
Unregister a ProseMirror plugin.
|
Unregister a ProseMirror plugin.
|
||||||
|
Loading…
Reference in New Issue
Block a user