mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-25 04:19:02 +08:00
change order
This commit is contained in:
parent
9f53481e01
commit
bddd5b3da7
@ -8,9 +8,9 @@ interface Range {
|
||||
}
|
||||
|
||||
type ReplaceWithNode = (
|
||||
range: Range,
|
||||
type: NodeType,
|
||||
attrs: {},
|
||||
range?: Range,
|
||||
) => any
|
||||
|
||||
declare module '../Editor' {
|
||||
@ -19,7 +19,7 @@ declare module '../Editor' {
|
||||
}
|
||||
}
|
||||
|
||||
export default (next: Function, editor: Editor): ReplaceWithNode => (range, typeOrName, attrs) => {
|
||||
export default (next: Function, editor: Editor): ReplaceWithNode => (typeOrName, attrs, range) => {
|
||||
const { view, state, schema } = editor
|
||||
const { $from, $to } = state.selection
|
||||
const type = getNodeType(typeOrName, schema)
|
||||
|
Loading…
Reference in New Issue
Block a user