slate
slate copied to clipboard
A completely customizable framework for building rich text editors. (Currently in beta.)
**Description** This is an alternative proposal to reconcile the ongoing debate over decorations in https://github.com/ianstormtaylor/slate/pull/4993 - I haven't fully analyzed everything here just yet but it seems to work very...
**Description** As shown in the test case,if there has two blocks, and each block only has one inline void element, like . The anchor in first text of first line,...
**Description** We're attempting to limit the content to a maximum length by overriding `insertText`, but as of version 0.67 Slate will continue to display characters that are typed even though...
**Problem** I'm using `Transforms.setNodes` to update some nodes (specifically link elements). Unfortunately, this results in some weird behavior where the nodes are completely removed instead of being updated. Codesandbox: https://codesandbox.io/s/gifted-nightingale-shm5b...
**Description** Updates the mention and hovering toolbar example so that they properly work on android. This PR also contains a potentially breaking change: It memos the Editable component to make...
**Description** I'm following the Hovering Toolbar example and when comes to this checking formatting function. The hovering toolbar is still able to get the right matches to show the correct...
**Problem** A check in `Portal` component in `slate/site/components.tsx` https://github.com/ianstormtaylor/slate/blob/82a10a38e624561b961a7c00ee31e7bcf197eef5/site/components.tsx#L169-L173 causes a de-sync between React tree and the DOM. Here's a detailed explanation on [Next.js react-hydration-error](https://nextjs.org/docs/messages/react-hydration-error) **Solution** ``` jsx import ReactDOM...
**Description** https://github.com/ianstormtaylor/slate/pull/4012 Previously added the ability to customize the `getDirtyPaths` as one would any other editor method. In my case, this will be useful for the case where deleting a...
#### Do you want to request a _feature_ or report a _bug_? Request #### What's the current behavior? Currently there is no way to toggle between JS and TS examples...
### Description While using the keyboard (shift + arrows) to select text.... **In chrome:** If I try to move to a previous line (not wrapped text, 2 separate lines), even...