From 3987e0576461abf792c7569d4c2d93ae8f560552 Mon Sep 17 00:00:00 2001 From: William Park Date: Thu, 15 Jul 2021 17:39:54 +0100 Subject: [PATCH] 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. --- docs/src/docPages/api/editor.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/docPages/api/editor.md b/docs/src/docPages/api/editor.md index 08c2a0c6..991cae89 100644 --- a/docs/src/docPages/api/editor.md +++ b/docs/src/docPages/api/editor.md @@ -19,8 +19,8 @@ Don’t 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
`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
`handlePlugins` Control how to merge the plugin into the existing plugins. | Register a ProseMirror plugin. | | `setOptions()` | `options` A list of options | Update editor options. |