From f787b68a36f8522f0c3e1837f7fcc8998d91fc8d Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 25 Apr 2017 20:52:37 +0300 Subject: [PATCH] add note to document documentation (#755) can perhaps spare some time from someone else wondering about this: https://github.com/ianstormtaylor/slate/issues/746 --- docs/reference/models/document.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/models/document.md b/docs/reference/models/document.md index de5ea5ef3..76c1844e5 100644 --- a/docs/reference/models/document.md +++ b/docs/reference/models/document.md @@ -7,7 +7,7 @@ import { Document } from 'slate' The top-level node in Slate's document model. -Documents are made up of block nodes, inline nodes, and text nodes—just like in the DOM. +Documents are made up of block nodes, inline nodes, and text nodes—just like in the DOM. Note that direct descendants of a document node have to be block nodes. In some places, you'll see mention of "fragments", which are also `Document` objects, just that aren't attached to the main `State`. For example, when cutting-and-pasting a selection of content, that content will be referred to as a document "fragment".