1 parent
edda5fc9e4
commit
fb9eab87eb
21 files changed
+187
-70
No files matched your search
@@ -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}`);
|
||||
|
||||
Reference in new issue
Block a user