@bobfrankston/rmfmail 1.2.235 → 1.2.236

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6773,9 +6773,13 @@ function showExternalEditHint(editorLabel) {
6773
6773
  }
6774
6774
  onEvent((ev) => {
6775
6775
  if (ev?.type !== "wordEditUpdated") return;
6776
- if (!wordEditId || ev.editId !== wordEditId) return;
6776
+ if (!wordEditId || ev.editId !== wordEditId) {
6777
+ console.log(`[word-edit] ignoring save for ${ev.editId} \u2014 this window is ${wordEditId || "(no session)"}`);
6778
+ return;
6779
+ }
6777
6780
  try {
6778
6781
  extEditHintClose?.();
6782
+ console.log(`[word-edit] applying mirrored save: ${(ev.html || "").length} chars (editId ${ev.editId})`);
6779
6783
  editor.setHtml(ev.html || "");
6780
6784
  showDraftStatus("Reloaded edits from external editor.", false);
6781
6785
  scheduleDraftSave();