1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-03-06 05:49:47 +01:00

442 Commits

Author SHA1 Message Date
Ian Storm Taylor
17a1c49cea update plugins doc 2018-01-10 22:15:45 -08:00
Ian Storm Taylor
a51180cfb7 add plugins doc 2018-01-10 22:10:55 -08:00
Spencer Baynton
2d7c470c94 Changed metaKey to crtlKey (#1508)
Fixes documentation suggested in issue #690.
2018-01-08 13:38:46 -08:00
Ian Storm Taylor
5444a300b8
rename kind to object for clarity (#1501)
* rename `kind` to `object` for clarity

* add deprecation warning for direct access

* add deprecation warning for node creation
2018-01-04 15:26:53 -08:00
Ryan
7dc93dced9 Docs: Fix method capitalization on resetKeyGenerator (#1474) 2017-12-29 10:43:02 -08:00
Justin Weiss
082fb53633 Add a copyFragment helper for plugin onCut/onCopy functions (#1429)
* Add a `copyFragment` helper for plugin onCut/onCopy functions

* Rename `copyFragment` to `cloneFragment`

* Fix a missing clone-fragment reference
2017-12-11 06:56:38 -08:00
Ian Storm Taylor
5df62975a9 update readmes 2017-12-02 13:48:51 -08:00
Conor Cussell
7032339ca2 Fix small error in docs (#1435)
- make the placeholder have an opacity
- correct `contentEditable` jsx attribute
2017-12-02 12:34:38 -08:00
Justin Weiss
1ae4471692 Document the position field of merge_node (#1440)
`merge_node` has a `position` field, which is exactly what I needed in order to transform some operations. It should be documented.
2017-12-02 12:30:05 -08:00
Tobias Andersen
1abc7e74b8 fix some typos in docs/guides (#1412) 2017-11-16 11:14:38 -08:00
ImgBot
68f11ca7b3 [ImgBot] optimizes images (#1405)
*Total: 1,903.39kb -> 1,523.20kb (19.97%)

\docs\images\auto-markdown-example.png -- 116.26kb -> 85.71kb (26.27%)
\docs\images\banner.png -- 11.74kb -> 3.95kb (66.4%)
\docs\images\links-example.png -- 104.37kb -> 75.41kb (27.74%)
\docs\images\preview.png -- 96.05kb -> 72.85kb (24.15%)
\docs\images\hovering-menu-example.png -- 100.86kb -> 73.46kb (27.17%)
\docs\images\icon.png -- 1.95kb -> 1.04kb (46.77%)
\docs\images\tables-example.png -- 110.42kb -> 81.08kb (26.57%)
\docs\images\logo.png -- 5.26kb -> 2.95kb (43.85%)
\docs\images\code-highlighting-example.png -- 115.29kb -> 86.31kb (25.14%)
\docs\images\forced-layout-example.png -- 103.95kb -> 98.07kb (5.66%)
\docs\images\images-example.png -- 245.30kb -> 220.21kb (10.23%)
\docs\images\jsfiddle.png -- 170.18kb -> 139.22kb (18.19%)
\docs\images\read-only-example.png -- 89.87kb -> 63.78kb (29.03%)
\docs\images\paste-html-example.png -- 176.66kb -> 136.64kb (22.65%)
\docs\images\plain-text-example.png -- 79.92kb -> 55.48kb (30.58%)
\docs\images\rich-text-example.png -- 103.41kb -> 75.30kb (27.19%)
\docs\images\slack.png -- 271.90kb -> 251.73kb (7.42%)
2017-11-15 14:21:25 -08:00
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