@bobfrankston/rmfmail 1.2.119 → 1.2.120
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 +19 -0
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +22 -0
- package/client/app.js.map +1 -1
- package/client/app.ts +19 -0
- package/client/compose/compose.bundle.js +24 -3
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/compose/compose.css +4 -2
- package/client/compose/compose.js +31 -0
- package/client/compose/compose.js.map +1 -1
- package/client/compose/compose.ts +25 -0
- package/client/compose/editor.js +5 -1
- package/client/compose/editor.js.map +1 -1
- package/client/compose/editor.ts +6 -2
- package/client/index.html +1 -0
- package/client/lib/rmf-tiny.js +2 -2
- package/package.json +3 -3
package/client/app.bundle.js
CHANGED
|
@@ -11645,8 +11645,27 @@ getSettings().then((s) => {
|
|
|
11645
11645
|
if (optEditorQuill) optEditorQuill.checked = ed === "quill";
|
|
11646
11646
|
if (optEditorTiptap) optEditorTiptap.checked = ed === "tiptap";
|
|
11647
11647
|
if (optEditorTinymce) optEditorTinymce.checked = ed === "tinymce";
|
|
11648
|
+
const fontEl = document.getElementById("opt-compose-font-size");
|
|
11649
|
+
if (fontEl) {
|
|
11650
|
+
const px = Number(s.ui?.composeFontSize);
|
|
11651
|
+
fontEl.value = String(Number.isFinite(px) && px >= 8 && px <= 32 ? px : 15);
|
|
11652
|
+
}
|
|
11648
11653
|
}).catch(() => {
|
|
11649
11654
|
});
|
|
11655
|
+
document.getElementById("opt-compose-font-size")?.addEventListener("change", (e) => {
|
|
11656
|
+
const el = e.target;
|
|
11657
|
+
const px = Number(el.value);
|
|
11658
|
+
if (!Number.isFinite(px) || px < 8 || px > 32) return;
|
|
11659
|
+
try {
|
|
11660
|
+
localStorage.setItem("mailx-compose-font-size", String(px));
|
|
11661
|
+
} catch {
|
|
11662
|
+
}
|
|
11663
|
+
getSettings().then((settings) => {
|
|
11664
|
+
settings.ui = { ...settings.ui, composeFontSize: px };
|
|
11665
|
+
saveSettings(settings);
|
|
11666
|
+
}).catch(() => {
|
|
11667
|
+
});
|
|
11668
|
+
});
|
|
11650
11669
|
function saveEditorSetting(editor) {
|
|
11651
11670
|
try {
|
|
11652
11671
|
localStorage.setItem("mailx-editor-type", editor);
|