forked from dburrows/draft-js-basic-html-editor
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexamples.js
More file actions
83 lines (83 loc) · 1.52 KB
/
Copy pathexamples.js
File metadata and controls
83 lines (83 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
let example = {
"entityMap": {},
"blocks": [
{
"key": "bhssi",
"text": "This is some content",
"type": "header-one",
"depth": 0,
"inlineStyleRanges": [],
"entityRanges": []
},
{
"key": "f0bd4",
"text": "A paragraph",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [
{
"offset": 2,
"length": 9,
"style": "ITALIC"
}
],
"entityRanges": []
},
{
"key": "dfh5i",
"text": "Another para",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [
{
"offset": 8,
"length": 4,
"style": "BOLD"
}
],
"entityRanges": []
},
{
"key": "c9vrl",
"text": "Yes",
"type": "blockquote",
"depth": 0,
"inlineStyleRanges": [
{
"offset": 0,
"length": 3,
"style": "BOLD"
}
],
"entityRanges": []
},
{
"key": "9dn12",
"text": "a one",
"type": "unordered-list-item",
"depth": 0,
"inlineStyleRanges": [
{
"offset": 0,
"length": 5,
"style": "BOLD"
}
],
"entityRanges": []
},
{
"key": "5dj7l",
"text": "and a two",
"type": "unordered-list-item",
"depth": 0,
"inlineStyleRanges": [
{
"offset": 0,
"length": 9,
"style": "BOLD"
}
],
"entityRanges": []
}
]
};