1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 10:51:44 +02:00

Added test for 'move-node' operation (#4361)

This commit is contained in:
Anish Aggarwal
2021-07-07 18:55:21 +05:30
committed by GitHub
parent 51bfb40fad
commit 19c9a8c86c

View File

@@ -0,0 +1,22 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
<editor>
<element>1</element>
<element>2</element>
</editor>
)
export const operations = [
{
type: 'move_node',
path: [0],
newPath: [1],
},
]
export const output = (
<editor>
<element>2</element>
<element>1</element>
</editor>
)