@bobfrankston/rmfmail 1.1.104 → 1.1.106
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.
- package/client/app.bundle.js +26 -12
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +38 -23
- package/client/app.js.map +1 -1
- package/client/app.ts +34 -21
- package/client/styles/components.css +18 -0
- package/package.json +1 -1
- package/packages/mailx-store/charset.d.ts.map +1 -1
- package/packages/mailx-store/charset.js +20 -0
- package/packages/mailx-store/charset.js.map +1 -1
- package/packages/mailx-store/charset.ts +19 -0
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-12348 → node_modules.npmglobalize-stash-77444}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -9861,18 +9861,32 @@ optEditorTiptap?.addEventListener("change", () => {
|
|
|
9861
9861
|
if (optEditorTiptap.checked) saveEditorSetting("tiptap");
|
|
9862
9862
|
});
|
|
9863
9863
|
optEditorTinymce?.addEventListener("change", () => {
|
|
9864
|
-
if (optEditorTinymce.checked)
|
|
9865
|
-
|
|
9866
|
-
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9864
|
+
if (!optEditorTinymce.checked) return;
|
|
9865
|
+
saveEditorSetting("tinymce");
|
|
9866
|
+
const cdnUrl = localStorage.getItem("mailx-tinymce-cdn") || "lib/tinymce/tinymce.min.js";
|
|
9867
|
+
const label = optEditorTinymce.closest("label");
|
|
9868
|
+
let status = document.getElementById("opt-editor-tinymce-status");
|
|
9869
|
+
if (label && !status) {
|
|
9870
|
+
status = document.createElement("span");
|
|
9871
|
+
status.id = "opt-editor-tinymce-status";
|
|
9872
|
+
status.className = "tb-menu-status";
|
|
9873
|
+
label.appendChild(status);
|
|
9874
|
+
}
|
|
9875
|
+
const setStatus = (text, state) => {
|
|
9876
|
+
if (!status) return;
|
|
9877
|
+
status.textContent = text;
|
|
9878
|
+
status.dataset.state = state;
|
|
9879
|
+
};
|
|
9880
|
+
setStatus(" loading\u2026", "pending");
|
|
9881
|
+
fetch(cdnUrl, { cache: "force-cache" }).then((r) => r.ok ? r.arrayBuffer() : Promise.reject(new Error(`HTTP ${r.status}`))).then(() => {
|
|
9882
|
+
setStatus(" \u2713 ready", "ready");
|
|
9883
|
+
setTimeout(() => {
|
|
9884
|
+
if (status?.dataset.state === "ready") setStatus("", "idle");
|
|
9885
|
+
}, 4e3);
|
|
9886
|
+
}).catch((e) => {
|
|
9887
|
+
setStatus(" \u26A0 load failed", "error");
|
|
9888
|
+
console.error("[tinymce] pre-warm fetch failed:", e?.message || e);
|
|
9889
|
+
});
|
|
9876
9890
|
});
|
|
9877
9891
|
var optExtEditAuto = document.getElementById("opt-extedit-auto");
|
|
9878
9892
|
var optExtEditWord = document.getElementById("opt-extedit-word");
|