mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-15 20:55:24 +01:00
* 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
Rich Text Example
This example shows you can add a very different concepts together: key commands, toolbars, and custom formatting, to get the functionality you'd expect from a rich text editor. Of course this is just the beginning, you can layer in whatever other behaviors you want!
Check out the Examples readme to see how to run it!