Skip to content

Commit 04dee73

Browse files
fix install slate example
1 parent 699da23 commit 04dee73

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

docs/concepts/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
A series of common questions people have about Slate:
55

6-
- [How come content is pasted as plain text?](#how-come-content-is-pasted-as-plain-text)
6+
- [Why is content pasted as plain text?](#how-come-content-is-pasted-as-plain-text)
77

88

9-
#### How come content is pasted as plain text?
9+
### Why is content pasted as plain text?
1010

1111
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".
1212

docs/guides/installing-slate.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,18 @@ import { Editor, Raw } from 'slate'
3232

3333
// Create our initial state...
3434
const initialState = Raw.deserialize({
35-
kind: 'block',
36-
type: 'paragraph',
3735
nodes: [
3836
{
39-
kind: 'text',
40-
ranges: [
37+
kind: 'block',
38+
type: 'paragraph',
39+
nodes: [
4140
{
42-
text: 'A line of text in a paragraph.'
41+
kind: 'text',
42+
ranges: [
43+
{
44+
text: 'A line of text in a paragraph.'
45+
}
46+
]
4347
}
4448
]
4549
}

0 commit comments

Comments
 (0)