Skip to content

Commit 5c4d538

Browse files
committed
Add ignoreHistory origin to text change operation for ignoring specific history
1 parent ad338eb commit 5c4d538

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/model/history.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ function lastChangeEvent(hist, force) {
6060
// a single operation, or are close together with an origin that
6161
// allows merging (starting with "+") into a single event.
6262
export function addChangeToHistory(doc, change, selAfter, opId) {
63+
if(change.origin == "ignoreHistory") return;
6364
let hist = doc.history
6465
hist.undone.length = 0
6566
let time = +new Date, cur

0 commit comments

Comments
 (0)