fix #271 - multiline text formatting issue

This commit is contained in:
Kevin Jahns 2021-01-09 14:55:08 +01:00
parent edc1f9418f
commit 186f7140b6

View File

@ -169,6 +169,7 @@ const insertNegatedAttributes = (transaction, parent, currPos, negatedAttributes
negatedAttributes.forEach((val, key) => { 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 = 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) left.integrate(transaction, 0)
currPos.currentAttributes.set(key, val)
}) })
} }