@ylzcc/editor 0.3.13 → 0.3.15
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/dist/editor.es.js +17 -5
- package/dist/editor.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/editor.es.js
CHANGED
|
@@ -83977,8 +83977,8 @@ const setAlign = (Ff) => {
|
|
|
83977
83977
|
hme == null || hme.forEach((mme) => {
|
|
83978
83978
|
var _me;
|
|
83979
83979
|
mme != null && mme.marks && ((_me = mme == null ? void 0 : mme.marks) == null || _me.forEach((gme) => {
|
|
83980
|
-
var vme, Eme;
|
|
83981
|
-
tme(((
|
|
83980
|
+
var vme, Eme, Sme, bme;
|
|
83981
|
+
(vme = gme == null ? void 0 : gme.attrs) != null && vme.href && tme(((Eme = gme == null ? void 0 : gme.attrs) == null ? void 0 : Eme.href) ?? ""), (Sme = gme == null ? void 0 : gme.attrs) != null && Sme.href && ame((bme = gme == null ? void 0 : gme.attrs) == null ? void 0 : bme.href);
|
|
83982
83982
|
}));
|
|
83983
83983
|
});
|
|
83984
83984
|
}
|
|
@@ -86307,7 +86307,13 @@ const upload = async (Ff) => {
|
|
|
86307
86307
|
duration: [300, 300],
|
|
86308
86308
|
interactiveBorder: 10,
|
|
86309
86309
|
interactiveDebounce: 75,
|
|
86310
|
-
maxWidth: 500
|
|
86310
|
+
maxWidth: 500,
|
|
86311
|
+
onTrigger(gme, vme) {
|
|
86312
|
+
$_.classList.add("tiptap-menu-item-list-item-light");
|
|
86313
|
+
},
|
|
86314
|
+
onHide(gme) {
|
|
86315
|
+
$_.classList.remove("tiptap-menu-item-list-item-light");
|
|
86316
|
+
}
|
|
86311
86317
|
// getReferenceClientRect: tableDom.getBoundingClientRect
|
|
86312
86318
|
});
|
|
86313
86319
|
}, [$_, zP]);
|
|
@@ -86952,7 +86958,13 @@ const normalClass = "tiptap-menu-item-menus-item", lighClass = "tiptap-menu-item
|
|
|
86952
86958
|
duration: [300, 300],
|
|
86953
86959
|
interactiveBorder: 10,
|
|
86954
86960
|
interactiveDebounce: 75,
|
|
86955
|
-
maxWidth: 500
|
|
86961
|
+
maxWidth: 500,
|
|
86962
|
+
onTrigger(Eme, Sme) {
|
|
86963
|
+
$_.classList.add("tiptap-menu-item-list-item-light");
|
|
86964
|
+
},
|
|
86965
|
+
onHide(Eme) {
|
|
86966
|
+
$_.classList.remove("tiptap-menu-item-list-item-light");
|
|
86967
|
+
}
|
|
86956
86968
|
// getReferenceClientRect: tableDom.getBoundingClientRect
|
|
86957
86969
|
});
|
|
86958
86970
|
}, [$_, zP]);
|
|
@@ -140178,7 +140190,7 @@ let Editor = (Ff, kh) => {
|
|
|
140178
140190
|
var qme, o_e, Qme, C_e;
|
|
140179
140191
|
if (((qme = Vme == null ? void 0 : Vme.data) == null ? void 0 : qme.type) === "sectionChange") {
|
|
140180
140192
|
const c_e = (Qme = (o_e = Vme == null ? void 0 : Vme.data) == null ? void 0 : o_e.value) == null ? void 0 : Qme.template;
|
|
140181
|
-
c_e && ((C_e = Object.keys(c_e)) == null ? void 0 : C_e.length) === 0 ? Ome("") : Ome(c_e);
|
|
140193
|
+
c_e && (((C_e = Object.keys(c_e)) == null ? void 0 : C_e.length) === 0 || !(eme != null && eme.experEnv)) ? Ome("") : Ome(c_e);
|
|
140182
140194
|
}
|
|
140183
140195
|
};
|
|
140184
140196
|
return window.addEventListener("message", zme), () => {
|