forked from ianstormtaylor/slate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
isHistory
to match new interface. (ianstormtaylor#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.
- Loading branch information
1 parent
e139c11
commit 70b64dc
Showing
7 changed files
with
91 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'slate-history': patch | ||
--- | ||
|
||
Fix isHistory check. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** @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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** @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() | ||
} | ||
|
||
export const output = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** @jsx jsx */ | ||
import { jsx } from '..' | ||
|
||
export const input = ( | ||
<editor> | ||
<block> | ||
Initial text <cursor /> | ||
</block> | ||
</editor> | ||
) | ||
|
||
export const run = () => {} | ||
|
||
export const output = true |