mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 20:40:19 +02:00
remove rendering from schema & make it expressive (#1262)
* split rendering out of schema * remove default components * first stab at new schema * make default normalizations smarter * revert to forcing defaults to be verbose? * refactor reason constants * split nodes into blocks/inlines * get tests passing * restructure schema tests * add parent test * cleanup * remove defaults from schema * refactor schema rule.nodes validation, update example * embed schema in state objects * fixes * update examples, and fixes * update walkthroughs * update docs * remove old schemas doc page * add more tests * update benchmarks
This commit is contained in:
@@ -40,11 +40,13 @@ class PlainText extends React.Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Editor
|
||||
placeholder="Enter some plain text..."
|
||||
state={this.state.state}
|
||||
onChange={this.onChange}
|
||||
/>
|
||||
<div className="editor">
|
||||
<Editor
|
||||
placeholder="Enter some plain text..."
|
||||
state={this.state.state}
|
||||
onChange={this.onChange}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user