From e4c6beaab445bafd758bca0e9199ec64e186c089 Mon Sep 17 00:00:00 2001 From: Ken Powers Date: Fri, 7 Jun 2019 10:53:33 -0700 Subject: [PATCH] Remove leaves from walkthough docs (#2831) --- docs/walkthroughs/installing-slate.md | 12 ++---------- docs/walkthroughs/saving-to-a-database.md | 24 ++++------------------- 2 files changed, 6 insertions(+), 30 deletions(-) diff --git a/docs/walkthroughs/installing-slate.md b/docs/walkthroughs/installing-slate.md index eb3c5eabf..28920e09a 100644 --- a/docs/walkthroughs/installing-slate.md +++ b/docs/walkthroughs/installing-slate.md @@ -40,11 +40,7 @@ const initialValue = Value.fromJSON({ nodes: [ { object: 'text', - leaves: [ - { - text: 'A line of text in a paragraph.', - }, - ], + text: 'A line of text in a paragraph.', }, ], }, @@ -70,11 +66,7 @@ const initialValue = Value.fromJSON({ nodes: [ { object: 'text', - leaves: [ - { - text: 'A line of text in a paragraph.', - }, - ], + 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 3dccc81aa..537a3d571 100644 --- a/docs/walkthroughs/saving-to-a-database.md +++ b/docs/walkthroughs/saving-to-a-database.md @@ -23,11 +23,7 @@ const initialValue = Value.fromJSON({ nodes: [ { object: 'text', - leaves: [ - { - text: 'A line of text in a paragraph.', - }, - ], + text: 'A line of text in a paragraph.', }, ], }, @@ -66,11 +62,7 @@ const initialValue = Value.fromJSON({ nodes: [ { object: 'text', - leaves: [ - { - text: 'A line of text in a paragraph.', - }, - ], + text: 'A line of text in a paragraph.', }, ], }, @@ -114,11 +106,7 @@ const initialValue = Value.fromJSON( nodes: [ { object: 'text', - leaves: [ - { - text: 'A line of text in a paragraph.', - }, - ], + text: 'A line of text in a paragraph.', }, ], }, @@ -161,11 +149,7 @@ const initialValue = Value.fromJSON( nodes: [ { object: 'text', - leaves: [ - { - text: 'A line of text in a paragraph.', - }, - ], + text: 'A line of text in a paragraph.', }, ], },