From 49ebbf9595190d7c6bd57c873347b9f70c743e9b Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 30 Oct 2017 11:06:50 -0500 Subject: [PATCH] update doc's text node key ranges -> leaves (#1343) --- docs/reference/slate-html-serializer/index.md | 2 +- docs/walkthroughs/installing-slate.md | 4 ++-- docs/walkthroughs/saving-to-a-database.md | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/reference/slate-html-serializer/index.md b/docs/reference/slate-html-serializer/index.md index bbf8405aa..3f23a4043 100644 --- a/docs/reference/slate-html-serializer/index.md +++ b/docs/reference/slate-html-serializer/index.md @@ -108,7 +108,7 @@ The object should be one of: { kind: 'text', - ranges: Array + leaves: Array } ``` diff --git a/docs/walkthroughs/installing-slate.md b/docs/walkthroughs/installing-slate.md index f11c3e947..8cfd1ce57 100644 --- a/docs/walkthroughs/installing-slate.md +++ b/docs/walkthroughs/installing-slate.md @@ -41,7 +41,7 @@ const initialValue = Value.fromJSON({ nodes: [ { kind: 'text', - ranges: [ + leaves: [ { text: 'A line of text in a paragraph.' } @@ -71,7 +71,7 @@ const initialValue = Value.fromJSON({ nodes: [ { kind: 'text', - ranges: [ + leaves: [ { text: 'A line of text in a paragraph.' } diff --git a/docs/walkthroughs/saving-to-a-database.md b/docs/walkthroughs/saving-to-a-database.md index c71a345f9..93b4b106c 100644 --- a/docs/walkthroughs/saving-to-a-database.md +++ b/docs/walkthroughs/saving-to-a-database.md @@ -24,7 +24,7 @@ const initialValue = Value.fromJSON({ nodes: [ { kind: 'text', - ranges: [ + leaves: [ { text: 'A line of text in a paragraph.' } @@ -74,7 +74,7 @@ const initialValue = Value.fromJSON({ nodes: [ { kind: 'text', - ranges: [ + leaves: [ { text: 'A line of text in a paragraph.' } @@ -128,7 +128,7 @@ const initialValue = Value.fromJSON(existingValue || { nodes: [ { kind: 'text', - ranges: [ + leaves: [ { text: 'A line of text in a paragraph.' } @@ -180,7 +180,7 @@ const initialValue = Value.fromJSON(existingValue || { nodes: [ { kind: 'text', - ranges: [ + leaves: [ { text: 'A line of text in a paragraph.' }