From 186f7140b622aeda4b4a924dc9323513b2ca13c6 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Sat, 9 Jan 2021 14:55:08 +0100 Subject: [PATCH] fix #271 - multiline text formatting issue --- src/types/YText.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/YText.js b/src/types/YText.js index a12d0747..dfd525e9 100644 --- a/src/types/YText.js +++ b/src/types/YText.js @@ -169,6 +169,7 @@ const insertNegatedAttributes = (transaction, parent, currPos, negatedAttributes negatedAttributes.forEach((val, key) => { 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) }) }