mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-18 22:24:38 +01:00
* rename state to value in slate core, as deprecation * rename all references to state to value in slate core * migrate slate-base64-serializer * migrate slate-html-serializer * migrate slate-hyperscript * migrate slate-plain-serializer * migrate slate-prop-types * migrate slate-simulator * fix change.setState compat * deprecate references to state in slate-react * remove all references to state in slate-react * remove `value` and `schema` from props to all components * fix default renderPlaceholder * fix tests * update examples * update walkthroughs * update guides * update reference
71 lines
1.5 KiB
JSON
71 lines
1.5 KiB
JSON
{
|
|
"document": {
|
|
"nodes": [
|
|
{
|
|
"kind": "block",
|
|
"type": "paragraph",
|
|
"nodes": [
|
|
{
|
|
"kind": "text",
|
|
"leaves": [
|
|
{
|
|
"text": "This example shows how you can make a hovering menu appear above your content, which you can use to make text "
|
|
},
|
|
{
|
|
"text": "bold",
|
|
"marks": [
|
|
{
|
|
"type": "bold"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": ", "
|
|
},
|
|
{
|
|
"text": "italic",
|
|
"marks": [
|
|
{
|
|
"type": "italic"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": ", or anything else you might want to do!"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"kind": "block",
|
|
"type": "paragraph",
|
|
"nodes": [
|
|
{
|
|
"kind": "text",
|
|
"leaves": [
|
|
{
|
|
"text": "Try it out yourself! Just "
|
|
},
|
|
{
|
|
"text": "select any piece of text and the menu will appear",
|
|
"marks": [
|
|
{
|
|
"type": "bold"
|
|
},
|
|
{
|
|
"type": "italic"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|