proper updating of text-attributes

This commit is contained in:
Kevin Jahns 2021-01-09 14:59:56 +01:00
parent 8086a4f816
commit ca667be68b

View File

@ -170,6 +170,7 @@ const insertNegatedAttributes = (transaction, parent, currPos, negatedAttributes
left = new Item(createID(ownClientId, getState(doc.store, ownClientId)), left, left && left.lastId, right, right && right.id, parent, null, new ContentFormat(key, val))
left.integrate(transaction, 0)
currPos.currentAttributes.set(key, val)
updateCurrentAttributes(currPos.currentAttributes, /** @type {ContentFormat} */ (left.content))
})
}