@bobfrankston/rmfmail 1.1.238 → 1.1.239
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.
|
@@ -5214,6 +5214,7 @@ document.getElementById("btn-attach")?.addEventListener("click", () => {
|
|
|
5214
5214
|
fileInput?.click();
|
|
5215
5215
|
});
|
|
5216
5216
|
var wordEditId = null;
|
|
5217
|
+
var extEditHintClose = null;
|
|
5217
5218
|
{
|
|
5218
5219
|
const isAndroid = window.mailxapi?.platform === "android" || window.parent?.mailxapi?.platform === "android";
|
|
5219
5220
|
if (isAndroid) {
|
|
@@ -5351,6 +5352,7 @@ function showExternalEditHint(editorLabel) {
|
|
|
5351
5352
|
const close = () => {
|
|
5352
5353
|
backdrop.remove();
|
|
5353
5354
|
document.removeEventListener("keydown", onKey, true);
|
|
5355
|
+
extEditHintClose = null;
|
|
5354
5356
|
};
|
|
5355
5357
|
const onKey = (e) => {
|
|
5356
5358
|
if (e.key === "Escape") {
|
|
@@ -5361,14 +5363,13 @@ function showExternalEditHint(editorLabel) {
|
|
|
5361
5363
|
};
|
|
5362
5364
|
document.addEventListener("keydown", onKey, true);
|
|
5363
5365
|
panel.querySelector("#mailx-extedit-hint-ok")?.addEventListener("click", close);
|
|
5364
|
-
|
|
5365
|
-
if (e.target === backdrop) close();
|
|
5366
|
-
});
|
|
5366
|
+
extEditHintClose = close;
|
|
5367
5367
|
}
|
|
5368
5368
|
onEvent((ev) => {
|
|
5369
5369
|
if (ev?.type !== "wordEditUpdated") return;
|
|
5370
5370
|
if (!wordEditId || ev.editId !== wordEditId) return;
|
|
5371
5371
|
try {
|
|
5372
|
+
extEditHintClose?.();
|
|
5372
5373
|
editor.setHtml(ev.html || "");
|
|
5373
5374
|
showDraftStatus("Reloaded edits from external editor.", false);
|
|
5374
5375
|
scheduleDraftSave();
|