mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-13 11:44:55 +01:00
If selection is inside a block of text that's removed, the part of the selection that's inside the bounds should clamp to the offset of the removed text. So if your cursor is at offset 5, and you're deleting from 2-10, your cursor should end up at offset 2.
Packages
Slate's codebase is monorepo managed with Lerna. It consists of a handful of packages—although you won't always use all of them. They are:
Package | Version | Size | Description |
---|---|---|---|
slate |
Slate's core data model logic. | ||
slate-base64-serializer |
A Base64 string serializer for Slate documents. | ||
slate-html-serializer |
An HTML serializer for Slate documents. | ||
slate-hyperscript |
A hyperscript tool to write JSX Slate documents! | ||
slate-plain-serializer |
A plain text serializer for Slate documents. | ||
slate-prop-types |
React prop types for checking Slate values. | ||
slate-react |
React components for rendering Slate editors. | ||
slate-simulator |
A simulator for testing Slate editors and plugins. |