/** @jsx jsx */ import { Editor, Transforms } from 'slate'; import { jsx } from '../../../../../../support/jsx'; export const input = ( Welcome to slate-yjs! ); export const expected = ( Welcome to slate-yjs! Hello world! ); export function run(editor: Editor) { Editor.withoutNormalizing(editor, () => { Transforms.setNodes( editor, { type: 'unstyled' }, { at: [0, 0], } ); Transforms.moveNodes(editor, { at: [0, 0], to: [2], }); }); }