mirror of
https://github.com/yjs/yjs.git
synced 2026-05-18 05:05:09 +02:00
applyDelta forwards am on modify
This commit is contained in:
@@ -1087,7 +1087,7 @@ export class YType {
|
||||
let item = currPos.right
|
||||
while (item != null && (item.deleted || !item.countable)) { item = item.next }
|
||||
if (item == null || item.content.constructor !== ContentType) { error.unexpectedCase() }
|
||||
/** @type {ContentType} */ (item.content).type.applyDelta(op.value)
|
||||
/** @type {ContentType} */ (item.content).type.applyDelta(op.value, am)
|
||||
currPos.formatText(transaction, /** @type {any} */ (this), 1, op.format || {})
|
||||
} else {
|
||||
error.unexpectedCase()
|
||||
@@ -1103,7 +1103,7 @@ export class YType {
|
||||
if (!(sub instanceof YType)) {
|
||||
error.unexpectedCase()
|
||||
}
|
||||
sub.applyDelta(op.value)
|
||||
sub.applyDelta(op.value, am)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user