mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-03 12:12:39 +02:00
fix/unit-test in slate-history(https://github.com/ianstormtaylor/slate/issues/5825) (#5841)
This commit is contained in:
@@ -4,7 +4,7 @@ import { jsx } from '../..'
|
|||||||
import { cloneDeep } from 'lodash'
|
import { cloneDeep } from 'lodash'
|
||||||
|
|
||||||
export const run = editor => {
|
export const run = editor => {
|
||||||
Transforms.delete(editor)
|
Transforms.delete(editor, { reverse: true })
|
||||||
}
|
}
|
||||||
export const input = (
|
export const input = (
|
||||||
<editor>
|
<editor>
|
||||||
@@ -15,5 +15,4 @@ export const input = (
|
|||||||
</block>
|
</block>
|
||||||
</editor>
|
</editor>
|
||||||
)
|
)
|
||||||
export const skip = true // TODO: see https://github.com/ianstormtaylor/slate/pull/4188
|
|
||||||
export const output = cloneDeep(input)
|
export const output = cloneDeep(input)
|
||||||
|
Reference in New Issue
Block a user