fix broken links
This commit is contained in:
@@ -91,7 +91,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/concept). To make them work with `.can()` you should check if the transaction should be dispatched. Here is how you can create a simple `.insertText()` command:
|
For some of your own commands, you probably want to work with the raw [transaction](/api/introduction). To make them work with `.can()` you should check if the transaction should be dispatched. Here is how you can create a simple `.insertText()` command:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
export default (value) => ({ tr, dispatch }) => {
|
export default (value) => ({ tr, dispatch }) => {
|
||||||
|
|||||||
2
docs/static/_redirects
vendored
2
docs/static/_redirects
vendored
@@ -1,4 +1,4 @@
|
|||||||
/overview /
|
/overview /
|
||||||
/examples /examples/default
|
/examples /examples/default
|
||||||
/guide /guide/configuration
|
/guide /guide/configuration
|
||||||
/api /api/concept
|
/api /api/introduction
|
||||||
|
|||||||
Reference in New Issue
Block a user