Doc fix: Remove braces from isEmpty & isEditable

Hi! I've updated the docs to make it more clear that `editor.isEmpty` and `editor.isEditable` are bools rather than functions that need called. 

This is a quick fix and I'd recommend these maybe be moved out of the "methods" section of the docs, but as of right now there's no obvious section to move them to, and I don't want to make assumptions about what these should be called.
This commit is contained in:
William Park 2021-07-15 17:39:54 +01:00 committed by Hans Pagel
parent 2559ef1af1
commit 3987e05764

View File

@ -19,8 +19,8 @@ Dont confuse methods with [commands](/api/commands). Commands are used to cha
| `getJSON()` | | Returns the current content as JSON. |
| `getAttributes()` | `name` Name of the node or mark | Get attributes of the currently selected node or mark. |
| `isActive()` | `name` Name of the node or mark<br>`attrs` Attributes of the node or mark | Returns if the currently selected node or mark is active. |
| `isEditable()` | - | Returns whether the editor is editable. |
| `isEmpty()` | - | Check if there is no content. |
| `isEditable` | - | Returns whether the editor is editable. |
| `isEmpty` | - | Check if there is no content. |
| `getCharacterCount()` | - | Get the number of characters for the current document. |
| `registerPlugin()` | `plugin` A ProseMirror plugin<br>`handlePlugins` Control how to merge the plugin into the existing plugins. | Register a ProseMirror plugin. |
| `setOptions()` | `options` A list of options | Update editor options. |