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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user