react-code-dataset / slate /packages /slate-history /test /undo /delete_backward /block-nested-reverse.tsx
Download slate/packages/slate-history/test/undo/delete_backward/block-nested-reverse.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 427 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/packages/slate-history/test/undo/delete_backward/block-nested-reverse.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/slate/packages/slate-history/test/undo/delete_backward/block-nested-reverse.tsx
-
curl -L -o block-nested-reverse.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/packages/slate-history/test/undo/delete_backward/block-nested-reverse.tsx
427 Bytes
| /** @jsx jsx */ | |
| import { jsx } from '../..' | |
| export const run = editor => { | |
| editor.deleteBackward() | |
| } | |
| export const input = ( | |
| <editor> | |
| <block>Hello</block> | |
| <block> | |
| <block> | |
| <cursor /> | |
| world! | |
| </block> | |
| </block> | |
| </editor> | |
| ) | |
| export const output = ( | |
| <editor> | |
| <block>Hello</block> | |
| <block> | |
| <block> | |
| <cursor /> | |
| world! | |
| </block> | |
| </block> | |
| </editor> | |
| ) | |