1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-07-31 20:40:19 +02:00

cleanup renderers in examples, fixes #43

This commit is contained in:
Ian Storm Taylor
2016-07-06 14:42:59 -07:00
parent e9ed40dd7f
commit de4afd38b1
12 changed files with 240 additions and 338 deletions

View File

@@ -34,15 +34,15 @@ function deserialize(string) {
*/
function serialize(state) {
return state.document.nodes
.map(node => node.text)
return state.blocks
.map(block => block.text)
.join('\n')
}
/**
* The plain text example.
*
* @type {Component} PlainText
* @type {Component}
*/
class PlainText extends React.Component {