1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-24 09:13:24 +01:00
slate/docs/general/resources.md
Ian Storm Taylor 7a71de387c
Add controller (#2221)
* fold Stack into Editor

* switch Change objects to be tied to editors, not values

* introduce controller

* add the "commands" concept

* convert history into commands on `value.data`

* add the ability to not normalize on editor creation/setting

* convert schema to a mutable constructor

* add editor.command method

* convert plugin handlers to receive `next`

* switch commands to use the onCommand middleware

* add queries support, convert schema to queries

* split out browser plugin

* remove noop util

* fixes

* fixes

* start fixing tests, refactor hyperscript to be more literal

* fix slate-html-serializer tests

* fix schema tests with hyperscript

* fix text model tests with hyperscript

* fix more tests

* get all tests passing

* fix lint

* undo decorations example update

* update examples

* small changes to the api to make it nicer

* update docs

* update commands/queries plugin logic

* change normalizeNode and validateNode to be middleware

* fix decoration removal

* rename commands tests

* add useful errors to existing APIs

* update changelogs

* cleanup

* fixes

* update docs

* add editor docs
2018-10-09 14:03:27 -07:00

2.2 KiB

Resources

A few resources that are helpful for building with Slate.

Libraries

These libraries are helpful when developing with Slate:

  • is-hotkey is a simple way to check whether an onKeyDown handler should fire for a given hotkey, handling cross-platform concerns like cmd vs. ctrl keys for you automatically.
  • react-broadcast works well when you need to have your custom node components re-render based on state that lives outside the document. It's the same pattern that react-router uses to update <Link> components.

Tools

These tools are helpful when developing with Slate:

Products

These products use Slate, and can give you an idea of what's possible:

Editors

These pre-packaged editors are built on top of Slate, and can be helpful to see how you might structure your code:

(Or, if you have their exact use case, can be a drop-in editor for you.)