mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-13 11:44:55 +01:00
* Save marks when creating native ranges in onNativeBeforeInput When we used native ranges in onNativeBeforeInput, we weren't carrying over the marks from Slate's selection. This made it impossible to know that the next character typed should have a set of marks. Fixes #1270. * Ensure marks are cleared after successfully entering text * Stop setting marks in findRange Adding the selection's marks inside findRange was too broad of a change, and would keep marks after doing things like moving a selection around. We should use selection.marks directly in insertTextAtRange instead. * Update find-range.js
This package contains the React-specific logic for Slate. It's separated further into a series of directories:
- Components — containing the React components for rendering Slate editors.
- Constants — containing a few private constants modules.
- Plugins — containing the React-specific plugins for Slate editors.
- Utils — containing a few private convenience modules.
Feel free to poke around in each of them to learn more!