vdc-editor 0.1.125 → 0.1.126
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
|
@@ -43351,11 +43351,14 @@ const Jx = (t) => t.command(({ tr: e }) => {
|
|
|
43351
43351
|
appendTransaction(n, o, r) {
|
|
43352
43352
|
const { tr: i } = r;
|
|
43353
43353
|
let s = !1;
|
|
43354
|
-
|
|
43355
|
-
|
|
43356
|
-
|
|
43357
|
-
|
|
43358
|
-
|
|
43354
|
+
const a = Yx.getState(r);
|
|
43355
|
+
if (n.some((u) => u.getMeta("composition")))
|
|
43356
|
+
return null;
|
|
43357
|
+
if (a || n.some((u) => u.docChanged)) {
|
|
43358
|
+
const u = [];
|
|
43359
|
+
r.doc.descendants((d, p, h, m) => {
|
|
43360
|
+
const { attrs: b } = d, y = u.includes(b.id) ? ab() : b.id || ab();
|
|
43361
|
+
t.includes(d.type.name) && (i.setNodeMarkup(p, void 0, { ...b, id: y, "number-line": m + 1 }), s = !0), u.push(y);
|
|
43359
43362
|
});
|
|
43360
43363
|
}
|
|
43361
43364
|
return s ? i : null;
|