mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-02 03:32:36 +02:00
update large document example
This commit is contained in:
@@ -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}
|
||||||
/>
|
/>
|
||||||
|
Reference in New Issue
Block a user