1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-13 18:53:59 +02:00

Fixed typos (#90)

This commit is contained in:
Andrew Murray
2016-07-16 01:35:18 +10:00
committed by Ian Storm Taylor
parent f1a6066ec5
commit a42996f53d
4 changed files with 5 additions and 5 deletions

View File

@@ -15,6 +15,6 @@ _To learn more, check out the [Core Plugin reference](../reference/plugins/core.
### The Editor Plugin
Plugins are so central to Slate's architecture, that the properties of the [`<Editor>`](../reference/components/editor.md) that allow you to add custom functionality (eg. `onKeyDown` or `onPaste`) are actually implemented as a plugin too. All of those properties actually just create an implicity, top-priority plugin that gets added at the beginning of the editor's plugin stack. But you'd never even know it!
Plugins are so central to Slate's architecture, that the properties of the [`<Editor>`](../reference/components/editor.md) that allow you to add custom functionality (eg. `onKeyDown` or `onPaste`) are actually implemented as a plugin too. All of those properties actually just create an implicitly, top-priority plugin that gets added at the beginning of the editor's plugin stack. But you'd never even know it!
_To learn more, check out the [`<Editor>` component reference](../reference/components/editor.md)._

View File

@@ -6,7 +6,7 @@ Slate keeps track of the user's selection in the editor in an immutable data sto
### Always References Text
One of the contraints of the Slate document model is that [leaf nodes are always text nodes](./the-document-model.md#leaf-text-nodes). This constraint exists to make selection logic simpler.
One of the constraints of the Slate document model is that [leaf nodes are always text nodes](./the-document-model.md#leaf-text-nodes). This constraint exists to make selection logic simpler.
A selection always refers to text nodes. Such that even if you set a selection relative to a non-text node, Slate will automatically correct it for you.