Skip to content

Commit 8b1519e

Browse files
committed
docs: add note on GUID storage during export in SuperConverter
- Included a comment in the SuperConverter class to clarify that the GUID is stored in custom properties during export to prevent unnecessary XML modifications if the document is not saved. This enhances code readability and understanding of the export process.
1 parent 4a75202 commit 8b1519e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/super-editor/src/core/super-converter/SuperConverter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,8 @@ class SuperConverter {
421421
this.documentModified = true;
422422
this.documentHash = null; // Clear temporary hash
423423

424+
// Note: GUID is stored to custom properties during export to avoid
425+
// unnecessary XML modifications if the document is never saved
424426
return this.documentGuid;
425427
}
426428

0 commit comments

Comments
 (0)