1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-29 09:59:48 +02:00

update large document example

This commit is contained in:
Ian Storm Taylor
2016-11-23 09:05:15 -08:00
parent 76b6c73b41
commit d99f9b6d78

View File

@@ -54,9 +54,9 @@ class LargeDocument extends React.Component {
constructor() {
super()
console.time('deserializeLargDocument')
console.time('deserializeLargeDocument')
this.state = { state: Raw.deserialize({ nodes }, { terse: true }) }
console.timeEnd('deserializeLargDocument')
console.timeEnd('deserializeLargeDocument')
}
/**
@@ -80,6 +80,7 @@ class LargeDocument extends React.Component {
<Editor
placeholder={'Enter some plain text...'}
schema={schema}
spellcheck={false}
state={this.state.state}
onChange={this.onChange}
/>