update doc pages

This commit is contained in:
Philipp Kühn
2020-11-13 11:52:02 +01:00
parent 070ea8fbe0
commit b2592c2a04
5 changed files with 12 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ import BulletList from '@tiptap/extension-bullet-list'
const CustomBulletList = BulletList.extend({
addKeyboardShortcuts() {
return {
'Mod-l': () => this.editor.bulletList(),
'Mod-l': () => this.editor.commands.bulletList(),
}
},
})
@@ -292,7 +292,7 @@ import BulletList from '@tiptap/extension-bullet-list'
const CustomBulletList = BulletList.extend({
addKeyboardShortcuts() {
return {
'Mod-l': () => this.editor.bulletList(),
'Mod-l': () => this.editor.commands.bulletList(),
}
},
})

View File

@@ -73,7 +73,7 @@ new Editor({
Or if you want to restore the content later (e. g. after an API call has finished), you can do that too:
```js
editor.setContent(`<p>Example Text</p>`)
editor.commands.setContent(`<p>Example Text</p>`)
```
## Not an option: Markdown