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