|
|
@@ -154,8 +154,8 @@ function changeNode( doc, key, value, node ) {
|
|
|
operation = new AttributeOperation( range, key, previousValue, value, doc.version );
|
|
|
}
|
|
|
|
|
|
- doc.applyOperation( operation );
|
|
|
delta.addOperation( operation );
|
|
|
+ doc.applyOperation( operation );
|
|
|
}
|
|
|
|
|
|
// It is expected that this method returns a delta.
|
|
|
@@ -206,8 +206,8 @@ function changeRange( doc, attributeKey, attributeValue, range ) {
|
|
|
let range = new Range( lastSplitPosition, position );
|
|
|
const operation = new AttributeOperation( range, attributeKey, attributeValueBefore, attributeValue, doc.version );
|
|
|
|
|
|
- doc.applyOperation( operation );
|
|
|
delta.addOperation( operation );
|
|
|
+ doc.applyOperation( operation );
|
|
|
}
|
|
|
|
|
|
return delta;
|