update content

This commit is contained in:
Hans Pagel
2020-11-06 11:37:30 +01:00
parent 7fa5ad5db4
commit 645ec6e153
5 changed files with 11 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ While thats perfectly fine and does make the selected bold, youd likely wa
Most commands can be executed combined to one call. First of all, thats shorter than separate function call in most cases. Here is an example to make the selected text bold:
```js
editor.chain().focus().bold().run()
editor.chain().bold().focus().run()
```
The `.chain()` is required to start a new chain and the `.run()` is needed to actually execute all the commands in between. Between those two functions, this example combines to different commands.