mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 22:21:20 +02:00
* 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.
22 lines
327 B
JavaScript
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
|