mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 01:50:06 +02:00
Update 06-editor.md (#3510)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Editor
|
# Editor
|
||||||
|
|
||||||
All of the behaviors, content and state of a Slate editor is rollup up into a single, top-level `Editor` object. It has an interface of:
|
All of the behaviors, content and state of a Slate editor is rolled up up into a single, top-level `Editor` object. It has an interface of:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
interface Editor {
|
interface Editor {
|
||||||
@@ -42,7 +42,7 @@ The `marks` property stores formatting that is attached to the cursor, and that
|
|||||||
|
|
||||||
## Overriding Behaviors
|
## Overriding Behaviors
|
||||||
|
|
||||||
In previous guides we've already hinted at this, but you can overriding any of the behaviors of an editor by overriding it's function properties.
|
In previous guides we've already hinted at this, but you can override any of the behaviors of an editor by overriding it's function properties.
|
||||||
|
|
||||||
For example, if you want define link elements that are inline nodes:
|
For example, if you want define link elements that are inline nodes:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user