draft-js-ast-exporter
Version:
Export content from draft-js into an abstract syntax tree.
197 lines (196 loc) • 2.87 kB
JavaScript
export default [
[
"block",
[
"header-two",
"ag6qs",
[
[
"inline",
[
[],
"DraftJS AST Exporter"
]
]
],
{}
]
],
[
"block",
[
"unstyled",
"59kd9",
[
[
"inline",
[
[],
"In your draft-js, "
]
],
[
"inline",
[
[
"BOLD"
],
"exporting"
]
],
[
"inline",
[
[],
" your "
]
],
[
"inline",
[
[
"ITALIC"
],
"content"
]
],
[
"inline",
[
[],
":"
]
]
],
{}
]
],
[
"block",
[
"ordered-list-item",
"bqjdr",
[
[
"inline",
[
[],
"From draft-js internals"
]
]
],
{}
]
],
[
"block",
[
"ordered-list-item",
"1pdm1",
[
[
"inline",
[
[],
"To an abstract syntax tree"
]
]
],
{}
]
],
[
"block",
[
"ordered-list-item",
"1sd0p",
[
[
"inline",
[
[],
"Extensibility."
]
]
],
{}
]
],
[
"block",
[
"atomic",
"9vgd",
[
[
"entity",
[
"image",
"1",
"IMMUTABLE",
{
"src": "http://placekitten.com/500/300",
"caption": "Image caption",
"rightsHolder": "Copyright Place Kitten",
"featured": "big"
},
[
[
"inline",
[
[],
"🍺"
]
]
]
]
]
],
{}
]
],
[
"block",
[
"unstyled",
"kst0",
[
[
"inline",
[
[],
"Find the project on "
]
],
[
"entity",
[
"LINK",
"2",
"MUTABLE",
{
"url": "https://github.com/icelab/draft-js-ast-exporter"
},
[
[
"inline",
[
[],
"Github"
]
]
]
]
],
[
"inline",
[
[],
"."
]
]
],
{}
]
]
]