1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-01 13:18:29 +01:00

431 Commits

Author SHA1 Message Date
Joel Gustafson
dd87e3b26d Update saving-and-loading-html-content.md (#1362)
Fixed a typo: should be `paragraph`, not `code`.
2017-10-31 22:24:32 -07:00
Ian Storm Taylor
98ed83c23b
Add schema first/last definitions (#1360)
* add `first` and `last` validations to schema

* update docs

* update schema usage in images example

* fix forced-layout example
2017-10-31 21:11:05 -07:00
Ryan
49ebbf9595 update doc's text node key ranges -> leaves (#1343) 2017-10-30 09:06:50 -07:00
Ian Storm Taylor
e991d5d480 update kind property in docs 2017-10-28 16:27:13 -07:00
Ian Storm Taylor
3482437e5c update docs to get it to rebuild? 2017-10-28 14:32:45 -07:00
Ian Storm Taylor
c9f1168cd7 add rendering and schema guides 2017-10-27 18:59:20 -07:00
Ian Storm Taylor
56a1f69a2f update docs 2017-10-27 14:50:27 -07:00
Ian Storm Taylor
adb2678732
Rename "state" to "value" everywhere (#1313)
* rename state to value in slate core, as deprecation

* rename all references to state to value in slate core

* migrate slate-base64-serializer

* migrate slate-html-serializer

* migrate slate-hyperscript

* migrate slate-plain-serializer

* migrate slate-prop-types

* migrate slate-simulator

* fix change.setState compat

* deprecate references to state in slate-react

* remove all references to state in slate-react

* remove `value` and `schema` from props to all components

* fix default renderPlaceholder

* fix tests

* update examples

* update walkthroughs

* update guides

* update reference
2017-10-27 13:39:06 -07:00
Ian Storm Taylor
44addc8140 update plugins guide 2017-10-27 13:12:26 -07:00
Ian Storm Taylor
759979f995 add extra code sample to plugins guide 2017-10-27 13:11:30 -07:00
Ian Storm Taylor
ac14038607 update readme and docs 2017-10-26 16:29:04 -07:00
Ivan Starkov
39338d5c58 Fix wrap-unwrap Block-Inline docs (#1296) 2017-10-26 09:31:00 -07:00
Ian Storm Taylor
2ab806189a update docs 2017-10-26 09:22:06 -07:00
Ian Storm Taylor
b215e5b7ac update docs 2017-10-25 20:23:22 -07:00
Ian Storm Taylor
c22839c6eb add data model guide, update docs 2017-10-25 20:13:52 -07:00
Ian Storm Taylor
509d3d50fc 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
2017-10-25 17:32:29 -07:00
Ian Storm Taylor
3f25e6a902 update plugins guide 2017-10-25 11:18:48 -07:00
Ian Storm Taylor
0694daf26a add plugins guide 2017-10-25 11:04:37 -07:00
Ian Storm Taylor
c442e52ca6 update docs 2017-10-18 08:58:23 -07:00
Ian Storm Taylor
63855ed15c fix operation link in docs 2017-10-18 08:50:24 -07:00
Alan Christopher Thomas
1237016c9e Mention schema rules as a valid place to make changes (#1256)
* Update Change guide to mention schema rules

* Fix typos
2017-10-18 08:49:31 -07:00
Ian Storm Taylor
d66e127e7d update editor.change() to use change.call(), update docs 2017-10-18 01:42:36 -07:00
Ian Storm Taylor
a802e74bb0 update docs 2017-10-18 01:16:14 -07:00
Ian Storm Taylor
8d60943645 update docs 2017-10-18 01:12:43 -07:00
Ian Storm Taylor
bad40ad303 update docs 2017-10-18 00:48:28 -07:00
Ian Storm Taylor
f42a64ac8f refactor placeholder to use schema (#1253)
* refactor placeholder to use schema

* update placeholder, remove old export

* add maxWidth to prevent overflow

* update docs
2017-10-18 00:23:39 -07:00
Ian Storm Taylor
117d8c55cc update docs 2017-10-17 20:53:38 -07:00
Ian Storm Taylor
2038d58c3a update docs 2017-10-17 20:30:29 -07:00
Ian Storm Taylor
68e4e090f0 update docs 2017-10-17 20:30:11 -07:00
Ian Storm Taylor
204f491b6b update docs 2017-10-17 20:07:14 -07:00
Ian Storm Taylor
a28bd4100b update docs 2017-10-17 18:49:02 -07:00
Ian Storm Taylor
b8693eb9ba add other react utils to reference sidebar 2017-10-17 09:35:24 -07:00
Ian Storm Taylor
a341f4d4eb fix docs pages and plugins example 2017-10-17 09:22:08 -07:00
Ian Storm Taylor
54ec11e199 update walkthroughs, docs and changelog 2017-10-16 21:13:07 -07:00
Ian Storm Taylor
11b2003f53 Remove data (#1244)
* remove data from event handler signatures

* standardize known transfer types

* add setEventTransfer to docs

* update examples, fix drag/drop

* fix tests and draggable attribute setting
2017-10-16 21:04:16 -07:00
Ian Storm Taylor
045c1879f4 update changelog and docs 2017-10-16 18:58:31 -07:00
Ian Storm Taylor
f69d2c4a12 remove keyboard data.* properties (#1235)
* update examples and walkthroughs

* deprecate data keyboard properties

* update examples

* add is-hotkey to resources doc

* udpate docs

* update docs

* fix split-block test
2017-10-15 19:23:07 -07:00
Ian Storm Taylor
c2ba87d327 Merge branch 'master' of github.com:ianstormtaylor/slate 2017-10-15 15:29:34 -07:00
Ian Storm Taylor
a7764d874f add react-broadcast to the docs 2017-10-15 15:29:30 -07:00
Yifeng Wang
58648bc23f fix minor doc typos (#1233) 2017-10-15 14:22:00 -07:00
Ian Storm Taylor
6c42f6c9c3 Rename Range to Leaf, and Selection to Range (#1231)
* rename Range to Leaf

* rename Selection to Range

* add findDOMRange, findNode, findRange helpers

* refactor to remove findDropPoint util

* revert findDOMNode to throwing errors

* export new helpers, fix linter

* update docs

* update examples
2017-10-14 15:36:27 -07:00
Ian Storm Taylor
db996df698 update docs 2017-10-13 19:39:43 -07:00
Ian Storm Taylor
5faaadf2ce add chinese translation to the readme and docs, closes #1228 2017-10-13 19:37:11 -07:00
Ian Storm Taylor
e53cee3942 refactor decorations to use selections (#1221)
* refactor decorations to use selections

* update docs

* cleanup

* add Selection.createList

* fix tests

* fix for nested blocks

* fix lint

* actually merge

* revert small change

* add state.decorations, with search example
2017-10-13 12:04:22 -07:00
Renaud Chaput
a68a6466f9 [Doc] Remove unused code in Plugins Walkthroughs (#1172)
The `BoldMark` function has been inlined below, it is no longer used here
2017-10-12 19:59:56 -07:00
Gabin Aureche
678589a809 Fix broken link to setKeyGenerator (#1214) 2017-10-11 00:42:59 -07:00
Conor Cussell
e0d7122881 Document replaceNodeByKey (#1200)
* Document `replaceNodeByKey`

* Update change.md
2017-10-02 11:29:16 -07:00
Ian Storm Taylor
c98ad903c8 Upgrade docs (#1182)
* remove table of contents

* remove more hard-coded table of contents

* remove comparisons, rewrite "why" section to be more general

* update intro
2017-09-25 11:50:23 -07:00
Yifeng Wang
f34a716ee7 update import declaration in walkthrough (#1174) 2017-09-25 08:43:18 -07:00
David O'Trakoun
e2d7a3acad typo (#1145) 2017-09-19 22:01:23 -07:00