1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-02 03:32:36 +02:00

add insertText parent path test

This commit is contained in:
Ian Storm Taylor
2019-12-02 16:33:55 -05:00
parent 258afae442
commit c06f82c5e8

View File

@@ -0,0 +1,20 @@
/** @jsx jsx */
import { Editor } from 'slate'
import { jsx } from '../../..'
export const input = (
<editor>
<block>word</block>
</editor>
)
export const run = editor => {
Editor.insertText(editor, 'x', { at: [0] })
}
export const output = (
<editor>
<block>x</block>
</editor>
)