parent
							
								
									01c08ef202
								
							
						
					
					
						commit
						ee7c189fdc
					
				| @ -164,13 +164,12 @@ const insertNegatedAttributes = (transaction, parent, currPos, negatedAttributes | |||||||
|   } |   } | ||||||
|   const doc = transaction.doc |   const doc = transaction.doc | ||||||
|   const ownClientId = doc.clientID |   const ownClientId = doc.clientID | ||||||
|   let left = currPos.left |   let nextFormat = currPos.left | ||||||
|   const right = currPos.right |   const right = currPos.right | ||||||
|   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)) |     nextFormat = new Item(createID(ownClientId, getState(doc.store, ownClientId)), nextFormat, nextFormat && nextFormat.lastId, right, right && right.id, parent, null, new ContentFormat(key, val)) | ||||||
|     left.integrate(transaction, 0) |     nextFormat.integrate(transaction, 0) | ||||||
|     currPos.currentAttributes.set(key, val) |     currPos.right = nextFormat | ||||||
|     updateCurrentAttributes(currPos.currentAttributes, /** @type {ContentFormat} */ (left.content)) |  | ||||||
|   }) |   }) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user