feat: add resetAttributes() command, deprecate resetNodeAttributes()

This commit is contained in:
Philipp Kühn
2021-04-07 21:30:55 +02:00
parent 41a044417e
commit 3334d930f3
5 changed files with 68 additions and 2 deletions

View File

@@ -168,7 +168,7 @@ Have a look at all of the core commands listed below. They should give you a goo
| .newlineInCode() | Add a newline character in code. |
| .replace() | Replaces text with a node. |
| .replaceRange() | Replaces text with a node within a range. |
| .resetNodeAttributes() | Resets all node attributes to the default value. |
| .resetAttributes() | Resets some node or mark attributes to the default value. |
| .selectParentNode() | Select the parent node. |
| .setMark() | Add a mark with new attributes. |
| .setNode() | Replace a given range with a node. |