call UndoManager pop-stack-item after transaction
This commit is contained in:
parent
7bac783490
commit
e1f0324840
@ -264,6 +264,7 @@ export const createAbsolutePositionFromRelativePosition = (rpos, doc) => {
|
|||||||
/**
|
/**
|
||||||
* @param {RelativePosition|null} a
|
* @param {RelativePosition|null} a
|
||||||
* @param {RelativePosition|null} b
|
* @param {RelativePosition|null} b
|
||||||
|
* @return {boolean}
|
||||||
*
|
*
|
||||||
* @function
|
* @function
|
||||||
*/
|
*/
|
||||||
|
@ -119,9 +119,6 @@ const popStackItem = (undoManager, stack, eventType) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
result = stackItem
|
result = stackItem
|
||||||
if (result != null) {
|
|
||||||
undoManager.emit('stack-item-popped', [{ stackItem: result, type: eventType }, undoManager])
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
transaction.changed.forEach((subProps, type) => {
|
transaction.changed.forEach((subProps, type) => {
|
||||||
// destroy search marker if necessary
|
// destroy search marker if necessary
|
||||||
@ -130,6 +127,9 @@ const popStackItem = (undoManager, stack, eventType) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}, undoManager)
|
}, undoManager)
|
||||||
|
if (result != null) {
|
||||||
|
undoManager.emit('stack-item-popped', [{ stackItem: result, type: eventType }, undoManager])
|
||||||
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user