From 376015df6c59e850d06fd6b45cae9186ad38c1f6 Mon Sep 17 00:00:00 2001 From: Dan Schuman Date: Fri, 10 May 2019 10:47:58 -0700 Subject: [PATCH] Text documentation update (#2758) `text` property is no longer computed. Add `marks` field. --- docs/reference/slate/text.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/docs/reference/slate/text.md b/docs/reference/slate/text.md index 8ee4999e5..8e3533760 100644 --- a/docs/reference/slate/text.md +++ b/docs/reference/slate/text.md @@ -11,6 +11,8 @@ A text node in a Slate [`Document`](./document.md). Text nodes are always the bo ```js Text({ key: String, + text: String, + marks: Immutable.List, }) ``` @@ -20,20 +22,24 @@ Text({ A unique identifier for the node. +### `text` + +`String` + +The text contents of this node. + +### `marks` + +`Immutable.List,` + +A list of marks for this node. + ### `object` `String` An immutable string value of `'text'` for easily separating this node from [`Inline`](./inline.md) or [`Block`](./block.md) nodes. -## Computed Properties - -### `text` - -`String` - -A concatenated string of all of the characters in the text node. - ## Static Methods ### `Text.create`