| /** @jsx jsx */ | |
| import { Transforms } from 'slate' | |
| import { jsx } from '..' | |
| export const input = ( | |
| <editor> | |
| <block> | |
| Initial text <cursor /> | |
| </block> | |
| </editor> | |
| ) | |
| export const run = editor => { | |
| Transforms.insertText(editor, 'additional text') | |
| editor.undo() | |
| } | |
| export const output = true | |