1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-01 19:22:35 +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() { constructor() {
super() super()
console.time('deserializeLargDocument') console.time('deserializeLargeDocument')
this.state = { state: Raw.deserialize({ nodes }, { terse: true }) } this.state = { state: Raw.deserialize({ nodes }, { terse: true }) }
console.timeEnd('deserializeLargDocument') console.timeEnd('deserializeLargeDocument')
} }
/** /**
@@ -80,6 +80,7 @@ class LargeDocument extends React.Component {
<Editor <Editor
placeholder={'Enter some plain text...'} placeholder={'Enter some plain text...'}
schema={schema} schema={schema}
spellcheck={false}
state={this.state.state} state={this.state.state}
onChange={this.onChange} onChange={this.onChange}
/> />