1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 02:49:56 +02:00

update docs

This commit is contained in:
Ian Storm Taylor
2017-10-26 09:22:06 -07:00
parent b215e5b7ac
commit 2ab806189a

View File

@@ -125,3 +125,5 @@ Here's how MDN explains it:
To make dealing with ranges easier though, they also provide "start" and "end" properties that take whether the range is forward or backward into account. The `startKey` and `startOffset` will always before the `endKey` and `endOffset` in the document.
One important thing to note is that the anchor and focus points of ranges **always reference the "leaf-most" text nodes**. They never reference blocks or inlines, always their child text nodes. This makes dealing with ranges a _lot_ easier.
> 📋 For more info, check out the [`Range` reference](../reference/slate/range.md).