mirror of
https://github.com/colanode/colanode.git
synced 2025-12-29 00:25:03 +01:00
Handle block content items deletion
This commit is contained in:
@@ -304,6 +304,11 @@ const applyBlockContentChangesToYDoc = (
|
||||
applyBlockContentItemChangesToYDoc(blockContentMap, blockContent);
|
||||
}
|
||||
}
|
||||
|
||||
// delete any extra content items
|
||||
while (contentArray.length > block.content.length) {
|
||||
contentArray.delete(contentArray.length - 1);
|
||||
}
|
||||
};
|
||||
|
||||
const applyBlockContentItemChangesToYDoc = (
|
||||
|
||||
Reference in New Issue
Block a user