mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-04-21 13:51:59 +02:00
Attempt to fix broken links in GitBook to API Reference
This commit is contained in:
parent
832597fe91
commit
f12a9ed9b1
@ -4,7 +4,7 @@ Slate's data structure is immutable, so you can't modify or delete nodes directl
|
||||
|
||||
Slate's transform functions are designed to be very flexible, to make it possible to represent all kinds of changes you might need to make to your editor. However, that flexibility can be hard to understand at first.
|
||||
|
||||
> 🤖 Check out the [Transforms](../api/transforms.md) reference for a full list of Slate's transforms.
|
||||
> 🤖 Check out the [Transforms](/api/transforms.md) reference for a full list of Slate's transforms.
|
||||
|
||||
## Selection Transforms
|
||||
|
||||
@ -29,7 +29,7 @@ Transforms.move(editor, {
|
||||
})
|
||||
```
|
||||
|
||||
[Selection Transforms API Reference](api/transforms#selection-transforms)
|
||||
[Selection Transforms API Reference](/api/transforms#selection-transforms)
|
||||
|
||||
## Text Transforms
|
||||
|
||||
@ -52,6 +52,8 @@ Transforms.delete(editor, {
|
||||
})
|
||||
```
|
||||
|
||||
[Text Transforms API Reference](/api/transforms#text-transforms)
|
||||
|
||||
## Node Transforms
|
||||
|
||||
Node transforms act on the individual element and text nodes that make up the editor's value. For example you could insert a new text node at a specific path:
|
||||
@ -77,6 +79,8 @@ Transforms.moveNodes(editor, {
|
||||
})
|
||||
```
|
||||
|
||||
[Node Transforms API Reference](https://docs.slatejs.org/api/transforms#node-transforms)
|
||||
|
||||
## The `at` Option
|
||||
|
||||
Many transforms act on a specific location in the document. By default, they will use the user's current selection. But this can be overridden with the `at` option.
|
||||
|
Loading…
x
Reference in New Issue
Block a user