From 04dee735f56f115ede34c453bf4bf035bb2ddb47 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Sun, 17 Jul 2016 14:03:18 -0700 Subject: [PATCH] fix install slate example --- docs/concepts/faq.md | 4 ++-- docs/guides/installing-slate.md | 14 +++++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/concepts/faq.md b/docs/concepts/faq.md index 4fc8a2030..da57049f7 100644 --- a/docs/concepts/faq.md +++ b/docs/concepts/faq.md @@ -3,10 +3,10 @@ A series of common questions people have about Slate: -- [How come content is pasted as plain text?](#how-come-content-is-pasted-as-plain-text) +- [Why is content pasted as plain text?](#how-come-content-is-pasted-as-plain-text) -#### How come content is pasted as plain text? +### Why is content pasted as plain text? One of Slate's core principles is that, unlike most other editors, it does **not** prescribe a specific "schema" to the content you are editing. This means that Slate's core has no concept of "block quotes" or "bold formatting". diff --git a/docs/guides/installing-slate.md b/docs/guides/installing-slate.md index 28d07dbd4..246ab3df8 100644 --- a/docs/guides/installing-slate.md +++ b/docs/guides/installing-slate.md @@ -32,14 +32,18 @@ import { Editor, Raw } from 'slate' // Create our initial state... const initialState = Raw.deserialize({ - kind: 'block', - type: 'paragraph', nodes: [ { - kind: 'text', - ranges: [ + kind: 'block', + type: 'paragraph', + nodes: [ { - text: 'A line of text in a paragraph.' + kind: 'text', + ranges: [ + { + text: 'A line of text in a paragraph.' + } + ] } ] }