v0.2.15
RustBox CI / rustbox (push) Canceled after 0s

This commit is contained in:
Mateusz Gruszczyński committed 2026-11-02 16:22:13 +01:00
1 parent edda5fc9e4
commit fb9eab87eb
21 files changed
+187 -70

No files matched your search

+5
View File
@@ -484,6 +484,11 @@ function serializeComposeHtml(editor = $("#compose-editor")) {
if (mode !== "html") return null;
const clone = editor.cloneNode(true);
clone.querySelectorAll(".rustbox-compose-font").forEach((wrapper) => wrapper.replaceWith(...wrapper.childNodes));
clone.querySelectorAll('[data-rustbox-signature-entry="true"]').forEach((entry) => {
entry.classList.remove("compose-body-entry");
entry.removeAttribute("data-rustbox-signature-entry");
if (!entry.className) entry.removeAttribute("class");
});
clone.querySelectorAll("img[data-rustbox-cid]").forEach((image) => {
const cid = image.dataset.rustboxCid || "";
if (cid) image.setAttribute("src", `cid:${cid}`);