docs: replace the editor methods table with a list of methods

This commit is contained in:
Hans Pagel
2021-10-01 20:51:53 +02:00
parent daa368a4cd
commit 6db0d340b8
2 changed files with 136 additions and 19 deletions

View File

@@ -37,7 +37,7 @@ This extension doesnt bind a specific keyboard shortcut. You would probably o
:::
## Get the current value
Did you know that you can use [`getAttributes`](/api/editor#methods) to find out which attributes, for example which href, is currently set? Dont confuse it with a [command](/api/commands) (which changes the state), its just a method. Here is how that could look like:
Did you know that you can use [`getAttributes`](/api/editor#get-attributes) to find out which attributes, for example which href, is currently set? Dont confuse it with a [command](/api/commands) (which changes the state), its just a method. Here is how that could look like:
```js
this.editor.getAttributes('link').href