mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 09:59:48 +02:00
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.
This commit is contained in:
18
packages/slate-history/test/isHistory/after-edit.js
Normal file
18
packages/slate-history/test/isHistory/after-edit.js
Normal file
@@ -0,0 +1,18 @@
|
||||
/** @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')
|
||||
}
|
||||
|
||||
export const output = true
|
Reference in New Issue
Block a user