vdc-editor 0.1.132 → 0.1.133
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/lib/vdc-editor.mjs
CHANGED
|
@@ -52142,8 +52142,8 @@ function rse(t) {
|
|
|
52142
52142
|
t.querySelectorAll("p").forEach((e) => {
|
|
52143
52143
|
const n = Array.from(e.querySelectorAll("button.super-text"));
|
|
52144
52144
|
if (n.length > 0) {
|
|
52145
|
-
const o = n.map((i) => (i.getAttribute(ht.TEXT) || "").replace(/<\/p>\s*<p>/g, "<br/>").replace(/<\/?p[^>]*>/g, "").trim()), r = document.createElement("p");
|
|
52146
|
-
r.classList.add("text-red-500"), r.innerHTML =
|
|
52145
|
+
const o = n.map((i) => `{${(i.getAttribute(ht.TEXT) || "").replace(/<\/p>\s*<p>/g, "<br/>").replace(/<\/?p[^>]*>/g, "").trim()}}`), r = document.createElement("p");
|
|
52146
|
+
r.classList.add("text-red-500"), r.innerHTML = `${o.join("<br/>")}`, e.before(r), n.forEach((i) => i.remove());
|
|
52147
52147
|
}
|
|
52148
52148
|
e.innerHTML = e.innerHTML.trim();
|
|
52149
52149
|
});
|