1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 22:21:20 +02:00
Files
slate/packages/slate-history/test/isHistory/after-redo.js
Jacob Carpenter 70b64dc8f1 Update isHistory to match new interface. (#5197)
* Update `isHistory` to match new interface.

This change merely preserves the original functionality and does not add verification of Batch's new `selectionBefore` property.

* Add changeset.
2022-11-17 09:21:37 -07:00

22 lines
327 B
JavaScript

/** @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()
editor.redo()
}
export const output = true