mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-02 19:52:32 +02:00
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
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
- [Schema](./reference/models/schema.md)
|
||||
- [State](./reference/models/state.md)
|
||||
- [Text](./reference//models/text.md)
|
||||
- [Transform](./reference/models/transform.md)
|
||||
- [Change](./reference/models/change.md)
|
||||
|
||||
|
||||
## Serializer Reference
|
||||
|
Reference in New Issue
Block a user