Download slate/packages/slate-history/test/undo/insert_text/basic.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/packages/slate-history/test/undo/insert_text/basic.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/slate/packages/slate-history/test/undo/insert_text/basic.tsx
-
curl -L -o basic.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/packages/slate-history/test/undo/insert_text/basic.tsx
280 Bytes
| /** @jsx jsx */ | |
| import { jsx } from '../..' | |
| import { cloneDeep } from 'lodash' | |
| export const run = editor => { | |
| editor.insertText('text') | |
| } | |
| export const input = ( | |
| <editor> | |
| <block> | |
| one | |
| <cursor /> | |
| </block> | |
| </editor> | |
| ) | |
| export const output = cloneDeep(input) | |