|
|
@@ -204,7 +204,7 @@ function changeRange( doc, attributeKey, attributeValue, range ) {
|
|
|
|
|
|
function addOperation() {
|
|
|
let range = new Range( lastSplitPosition, position );
|
|
|
- const operation = new AttributeOperation( range, attributeKey, attributeValueBefore, attributeValue, doc.version );
|
|
|
+ const operation = new AttributeOperation( range, attributeKey, attributeValueBefore || null, attributeValue, doc.version );
|
|
|
|
|
|
delta.addOperation( operation );
|
|
|
doc.applyOperation( operation );
|