1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-03-14 10:19:43 +01:00
Ryan Mitts 07669dca4b
When resolving a slate Point from a DOM selection (toSlatePoint), consider that a node is only void if it's within the same editor that is resolving the Point. (#4885)
If you have a nested editor setup. For example, one editor has a void node that contains another editor. In this case, a resolution of a selection by the nested editor previously would consider that the selection is for a void node since an ancestor void node does exist. However, this selection is only a void node in the context of this editor if the ancestor void node is contained in the editor.
2022-03-20 04:04:33 -07:00
..
2022-03-09 04:06:18 -07:00
2022-03-14 22:36:10 -07:00
2022-03-14 22:36:10 -07:00
2019-11-27 20:54:42 -05:00

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.
  • Hooks — containing a few React hooks for Slate editors.
  • 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!