mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-05-18 05:05:36 +02:00
editor: fix marks lost on node split
This commit is contained in:
committed by
Abdullah Atta
parent
8500c971eb
commit
ffafd2e787
@@ -106,6 +106,8 @@ export const BlockId = Extension.create({
|
||||
if (updates.length > 0) {
|
||||
tr.step(new BatchAttributeStep(updates));
|
||||
tr.setMeta("ignoreEdit", true);
|
||||
// Transaction.addStep always clears storedMarks
|
||||
if (newState.storedMarks) tr.setStoredMarks(newState.storedMarks);
|
||||
return tr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user