From ca667be68b7e034867ca03f01f4e3f7bd9eccb03 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Sat, 9 Jan 2021 14:59:56 +0100 Subject: [PATCH] proper updating of text-attributes --- src/types/YText.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/YText.js b/src/types/YText.js index dfd525e9..b5694507 100644 --- a/src/types/YText.js +++ b/src/types/YText.js @@ -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)) }) }