docs: update links to api concept, fix #121
This commit is contained in:
@@ -71,7 +71,7 @@ Both calls would return `true` if it’s possible to apply the commands, and `fa
|
|||||||
|
|
||||||
In order to make that work with your custom commands, don’t forget to return `true` or `false`.
|
In order to make that work with your custom commands, don’t forget to return `true` or `false`.
|
||||||
|
|
||||||
For some of your own commands, you probably want to work with the raw [transaction](/api/overview). To make them work with `.can()` you should check if the transaction should be dispatched. Here is how we do that within `.insertText()`:
|
For some of your own commands, you probably want to work with the raw [transaction](/api/concept). To make them work with `.can()` you should check if the transaction should be dispatched. Here is how we do that within `.insertText()`:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
export default (value: string): Command => ({ tr, dispatch }) => {
|
export default (value: string): Command => ({ tr, dispatch }) => {
|
||||||
|
|||||||
@@ -106,7 +106,7 @@
|
|||||||
- title: API
|
- title: API
|
||||||
items:
|
items:
|
||||||
- title: Concept
|
- title: Concept
|
||||||
link: /api/overview
|
link: /api/concept
|
||||||
- title: Editor
|
- title: Editor
|
||||||
link: /api/editor
|
link: /api/editor
|
||||||
- title: Commands
|
- title: Commands
|
||||||
|
|||||||
2
docs/static/_redirects
vendored
2
docs/static/_redirects
vendored
@@ -1,4 +1,4 @@
|
|||||||
/overview /
|
/overview /
|
||||||
/examples /examples/basic
|
/examples /examples/basic
|
||||||
/guide /guide/get-started
|
/guide /guide/get-started
|
||||||
/api /api/overview
|
/api /api/concept
|
||||||
|
|||||||
Reference in New Issue
Block a user