1
0
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:
Ian Storm Taylor
2017-10-25 17:32:29 -07:00
committed by GitHub
parent 6298d5442d
commit 509d3d50fc
102 changed files with 2977 additions and 2175 deletions

View File

@@ -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>
)
}