1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-21 07:32:24 +01:00

50 Commits

Author SHA1 Message Date
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
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
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
117d8c55cc update docs 2017-10-17 20:53:38 -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
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
Ian Storm Taylor
7470a6dd53 Expose transforms (#836)
* refactor to extract applyOperation util

* change handlers to receive transform instead of state

* change onChange to receive a transform, update rich-text example

* fix stack iterationg, convert check-list example

* convert code-highlighting, embeds, emojis examples

* change operations to use full paths, not indexes

* switch split and join to be recursive

* fix linter

* fix onChange calls

* make all operations invertable, add src/operations/* logic

* rename "join" to "merge"

* remove .length property of nodes

* fix node.getFragmentAtRange logic

* convert remaining examples, fix existing changes

* fix .apply() calls and tests

* change setSave and setIsNative transforms

* fix insert_text operations to include marks always

* cleanup and fixes

* fix node inheritance

* fix core onCut handler

* skip constructor in node inheritance

* cleanup

* change updateDescendant to updateNode

* add and update docs

* eliminate need for .apply(), change history to mutable

* add missing file

* add deprecation support to Transform objects

* rename "transform" to "change"

* update benchmark

* add deprecation util to logger

* update transform isNative attr

* fix remaining warn use

* simplify history checkpointing logic

* fix tests

* revert history to being immutable

* fix history

* fix normalize

* fix syntax error from merge
2017-09-05 18:03:41 -07:00
Ian Storm Taylor
5091587814 simplify schema rules, update docs 2016-08-14 15:51:07 -07:00
Ian Storm Taylor
06af3de5e5 start adding docs 2016-08-14 14:38:27 -07:00
Ian Storm Taylor
cd9c745a27 add bundled guide to readme 2016-08-07 17:40:28 -07:00
Ian Storm Taylor
030beab8cd fix bundled file, add bundled installation guide 2016-08-07 17:25:43 -07:00
Gonçalo Margalho
3128c26b82 Fix typo in serialize methods (#230) 2016-08-07 12:48:09 -07:00
adamlong5
58691691a9 Fix error in Hello World of installation guide (#170) 2016-07-24 17:14:42 -07:00
Ian Storm Taylor
d4433b8ec3 update installing slate guide to omit ranges 2016-07-21 16:42:24 -07:00
Ian Storm Taylor
054aaf419f update formatting guide with toggleMark 2016-07-21 12:02:26 -07:00
Ian Storm Taylor
00ee5c3c70 add prebundled notice to the installing guide 2016-07-20 14:43:11 -07:00
Ian Storm Taylor
f50c37f847 update saving html guide 2016-07-20 10:20:10 -07:00
Ian Storm Taylor
3b49833e8e add saving and loading html content guide to docs 2016-07-20 10:17:39 -07:00
Ian Storm Taylor
a9272f7274 add serialization to html serializer 2016-07-20 09:22:55 -07:00
Ian Storm Taylor
dcbca782e5 update saving to a database guide 2016-07-18 13:34:45 -07:00
Ian Storm Taylor
c41046ac17 add onDocumentChange and onSelectionChange properties to editor 2016-07-18 13:30:37 -07:00
Ian Storm Taylor
730b731b84 update saving to a database guide 2016-07-18 12:56:20 -07:00
Ian Storm Taylor
9e3d628ef5 add saving to a database guide 2016-07-18 12:55:04 -07:00
Somasundaram Ayyappan
0289edfc29 Rename mark/unmark transforms to addMark/removeMark (#113)
* Rename mark/unmark transforms to addMark/removeMark

* delete gitkeep
2016-07-18 12:00:30 -07:00
Ian Storm Taylor
04dee735f5 fix install slate example 2016-07-17 14:03:18 -07:00
Sean Matheson
699da23ced Fix "initialState" declaration in "Installing Slate" doc (#105)
I tried to use the example however I received errors saying that `map` could not be executed over `undefined`.

It looks like the deserialiser was trying to map over the `nodes` prop of an object, but the example passes in an array of objects.  I removed the wrapping array and all was well again.
2016-07-17 14:02:46 -07:00
Mark Bao
d643a7e8cd Fix typo in Installing Slate doc (#79) 2016-07-13 19:28:12 -07:00
Ian Storm Taylor
0b8498e83a refactor docs 2016-07-12 21:34:31 -07:00
Ian Storm Taylor
3c6f79eb4c update docs 2016-07-11 12:35:04 -07:00
Ian Storm Taylor
b60ec6e3f7 update docs 2016-07-11 12:34:50 -07:00
Ian Storm Taylor
9ee0b4a17d update guides 2016-07-08 14:54:52 -07:00
Ian Storm Taylor
8c07941d56 update docs 2016-07-08 14:40:45 -07:00
Ian Storm Taylor
3cf14527af update docs 2016-07-08 14:10:06 -07:00
Ian Storm Taylor
b0b3c3f907 update docs 2016-07-08 12:36:42 -07:00
Ian Storm Taylor
a4a386a261 add more docs 2016-07-08 12:32:49 -07:00