vdc-editor 0.1.287 → 0.1.288
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/BulkSpellChecker-DW_F31ne.mjs +5 -0
- package/lib/BulkSpellChecker-DW_F31ne.mjs.map +1 -0
- package/lib/{index-CSWlx85G.mjs → index-BDoYsAYw.mjs} +45 -23
- package/lib/{index-CSWlx85G.mjs.map → index-BDoYsAYw.mjs.map} +1 -1
- package/lib/src/components/editor/CoreEditorV2.vue.d.ts +3 -0
- package/lib/src/type.d.ts +8 -0
- package/lib/vdc-editor.mjs +1 -1
- package/lib/vdc-editor.umd.js +62 -56
- package/lib/vdc-editor.umd.js.map +1 -1
- package/package.json +1 -1
- package/lib/BulkSpellChecker-IraxV0f0.mjs +0 -5
- package/lib/BulkSpellChecker-IraxV0f0.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulkSpellChecker-DW_F31ne.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -32466,7 +32466,7 @@ const CY = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
|
|
|
32466
32466
|
toolbarExtensionOrder: {}
|
|
32467
32467
|
},
|
|
32468
32468
|
setup(t) {
|
|
32469
|
-
const e = DR(() => import("./BulkSpellChecker-
|
|
32469
|
+
const e = DR(() => import("./BulkSpellChecker-DW_F31ne.mjs")), { t: n } = Jt(), o = t, r = zt("isEditable", z(!0)), i = [
|
|
32470
32470
|
mh,
|
|
32471
32471
|
hd,
|
|
32472
32472
|
vh,
|
|
@@ -42243,7 +42243,7 @@ const xne = ko.create({
|
|
|
42243
42243
|
const { schema: n, doc: o, tr: r } = t.state, i = f0(o.resolve(e), n.marks.link);
|
|
42244
42244
|
if (!i) return !1;
|
|
42245
42245
|
const s = o.resolve(i.from), a = o.resolve(i.to), l = r.setSelection(new Xe(s, a));
|
|
42246
|
-
t.dispatch(l);
|
|
42246
|
+
return t.dispatch(l), !0;
|
|
42247
42247
|
}
|
|
42248
42248
|
}
|
|
42249
42249
|
})
|
|
@@ -49313,7 +49313,7 @@ const Pse = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: o, edi
|
|
|
49313
49313
|
})
|
|
49314
49314
|
]),
|
|
49315
49315
|
Tab: () => this.editor.commands.first(({ commands: o }) => [
|
|
49316
|
-
() => !
|
|
49316
|
+
() => !this.editor.isActive("table")
|
|
49317
49317
|
]),
|
|
49318
49318
|
"Mod-Enter": () => this.editor.commands.setPageBreak()
|
|
49319
49319
|
};
|
|
@@ -52911,22 +52911,20 @@ const zle = bt.create({
|
|
|
52911
52911
|
t.chain().focus().run();
|
|
52912
52912
|
const e = t.storage.deviceEnv.isMobile ? await Ble() : await Hle();
|
|
52913
52913
|
if (!e) return;
|
|
52914
|
-
|
|
52914
|
+
const n = new DataTransfer();
|
|
52915
52915
|
if (lse(e)) {
|
|
52916
|
-
n
|
|
52917
|
-
const
|
|
52918
|
-
|
|
52916
|
+
n.setData("text/html", e);
|
|
52917
|
+
const r = document.createElement("div");
|
|
52918
|
+
r.innerHTML = e, n.setData("text/plain", r.innerText);
|
|
52919
52919
|
} else
|
|
52920
|
-
|
|
52921
|
-
const
|
|
52922
|
-
r.setData("text/html", n), r.setData("text/plain", o);
|
|
52923
|
-
const i = new ClipboardEvent("paste", {
|
|
52920
|
+
n.setData("text/plain", e);
|
|
52921
|
+
const o = new ClipboardEvent("paste", {
|
|
52924
52922
|
bubbles: !0,
|
|
52925
52923
|
cancelable: !0
|
|
52926
52924
|
});
|
|
52927
|
-
Object.defineProperty(
|
|
52928
|
-
value:
|
|
52929
|
-
}), t.view.dom.dispatchEvent(
|
|
52925
|
+
Object.defineProperty(o, "clipboardData", {
|
|
52926
|
+
value: n
|
|
52927
|
+
}), t.view.dom.dispatchEvent(o);
|
|
52930
52928
|
} catch (e) {
|
|
52931
52929
|
console.warn("Clipboard paste failed:", e);
|
|
52932
52930
|
}
|
|
@@ -56435,7 +56433,8 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
56435
56433
|
toolbarExtensionOrder: {},
|
|
56436
56434
|
watermarkOverlay: {},
|
|
56437
56435
|
bottomOffset: {},
|
|
56438
|
-
characterCountLimit: {}
|
|
56436
|
+
characterCountLimit: {},
|
|
56437
|
+
blockSeparatorPolicy: {}
|
|
56439
56438
|
},
|
|
56440
56439
|
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
56441
56440
|
setup(t, { expose: e, emit: n }) {
|
|
@@ -57477,7 +57476,8 @@ const Gk = /* @__PURE__ */ Y({
|
|
|
57477
57476
|
toolbarExtensionOrder: { default: void 0 },
|
|
57478
57477
|
watermarkOverlay: {},
|
|
57479
57478
|
bottomOffset: {},
|
|
57480
|
-
characterCountLimit: {}
|
|
57479
|
+
characterCountLimit: {},
|
|
57480
|
+
blockSeparatorPolicy: { default: "paragraph" }
|
|
57481
57481
|
},
|
|
57482
57482
|
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur", "open-batch-replace"],
|
|
57483
57483
|
setup(t, { expose: e, emit: n }) {
|
|
@@ -57552,6 +57552,14 @@ const Gk = /* @__PURE__ */ Y({
|
|
|
57552
57552
|
}, $e = (me) => {
|
|
57553
57553
|
V(me);
|
|
57554
57554
|
}, he = new Ni({
|
|
57555
|
+
coreExtensionOptions: {
|
|
57556
|
+
clipboardTextSerializer: {
|
|
57557
|
+
blockSeparator: o.blockSeparatorPolicy === "line" ? `
|
|
57558
|
+
` : `
|
|
57559
|
+
|
|
57560
|
+
`
|
|
57561
|
+
}
|
|
57562
|
+
},
|
|
57555
57563
|
enablePasteRules: !1,
|
|
57556
57564
|
// disable Markdown when pasting
|
|
57557
57565
|
enableInputRules: !1,
|
|
@@ -59331,7 +59339,8 @@ const Pde = /* @__PURE__ */ Y({
|
|
|
59331
59339
|
toolbarExtensionOrder: {},
|
|
59332
59340
|
watermarkOverlay: {},
|
|
59333
59341
|
bottomOffset: {},
|
|
59334
|
-
characterCountLimit: {}
|
|
59342
|
+
characterCountLimit: {},
|
|
59343
|
+
blockSeparatorPolicy: {}
|
|
59335
59344
|
},
|
|
59336
59345
|
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
59337
59346
|
setup(t, { expose: e, emit: n }) {
|
|
@@ -59581,7 +59590,8 @@ const Bde = { class: "flex justify-between items-center relative gap-x-3" }, Fde
|
|
|
59581
59590
|
toolbarExtensionOrder: {},
|
|
59582
59591
|
watermarkOverlay: {},
|
|
59583
59592
|
bottomOffset: {},
|
|
59584
|
-
characterCountLimit: {}
|
|
59593
|
+
characterCountLimit: {},
|
|
59594
|
+
blockSeparatorPolicy: {}
|
|
59585
59595
|
},
|
|
59586
59596
|
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
59587
59597
|
setup(t, { expose: e, emit: n }) {
|
|
@@ -59624,6 +59634,14 @@ const Bde = { class: "flex justify-between items-center relative gap-x-3" }, Fde
|
|
|
59624
59634
|
width: o.maxWidth ? "100%" : void 0,
|
|
59625
59635
|
margin: o.maxWidth ? "0 auto" : void 0
|
|
59626
59636
|
})), V = new Ni({
|
|
59637
|
+
coreExtensionOptions: {
|
|
59638
|
+
clipboardTextSerializer: {
|
|
59639
|
+
blockSeparator: o.blockSeparatorPolicy === "line" ? `
|
|
59640
|
+
` : `
|
|
59641
|
+
|
|
59642
|
+
`
|
|
59643
|
+
}
|
|
59644
|
+
},
|
|
59627
59645
|
enablePasteRules: !1,
|
|
59628
59646
|
// disable Markdown when pasting
|
|
59629
59647
|
enableInputRules: !1,
|
|
@@ -60173,7 +60191,8 @@ const Bde = { class: "flex justify-between items-center relative gap-x-3" }, Fde
|
|
|
60173
60191
|
toolbarExtensionOrder: {},
|
|
60174
60192
|
watermarkOverlay: {},
|
|
60175
60193
|
bottomOffset: {},
|
|
60176
|
-
characterCountLimit: {}
|
|
60194
|
+
characterCountLimit: {},
|
|
60195
|
+
blockSeparatorPolicy: {}
|
|
60177
60196
|
},
|
|
60178
60197
|
emits: ["update:modelValue", "update:comment"],
|
|
60179
60198
|
setup(t, { emit: e }) {
|
|
@@ -60248,7 +60267,8 @@ const Bde = { class: "flex justify-between items-center relative gap-x-3" }, Fde
|
|
|
60248
60267
|
toolbarExtensionOrder: {},
|
|
60249
60268
|
watermarkOverlay: {},
|
|
60250
60269
|
bottomOffset: {},
|
|
60251
|
-
characterCountLimit: {}
|
|
60270
|
+
characterCountLimit: {},
|
|
60271
|
+
blockSeparatorPolicy: {}
|
|
60252
60272
|
},
|
|
60253
60273
|
setup(t) {
|
|
60254
60274
|
const e = t;
|
|
@@ -60855,7 +60875,8 @@ const Hde = /* @__PURE__ */ cV($de), eC = (t, e, n) => {
|
|
|
60855
60875
|
toolbarExtensionOrder: {},
|
|
60856
60876
|
watermarkOverlay: {},
|
|
60857
60877
|
bottomOffset: {},
|
|
60858
|
-
characterCountLimit: {}
|
|
60878
|
+
characterCountLimit: {},
|
|
60879
|
+
blockSeparatorPolicy: {}
|
|
60859
60880
|
},
|
|
60860
60881
|
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
60861
60882
|
setup(t, { expose: e, emit: n }) {
|
|
@@ -61055,7 +61076,8 @@ const Wfe = /* @__PURE__ */ Y({
|
|
|
61055
61076
|
toolbarExtensionOrder: {},
|
|
61056
61077
|
watermarkOverlay: {},
|
|
61057
61078
|
bottomOffset: {},
|
|
61058
|
-
characterCountLimit: {}
|
|
61079
|
+
characterCountLimit: {},
|
|
61080
|
+
blockSeparatorPolicy: {}
|
|
61059
61081
|
},
|
|
61060
61082
|
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
61061
61083
|
setup(t, { expose: e, emit: n }) {
|
|
@@ -61745,4 +61767,4 @@ export {
|
|
|
61745
61767
|
vfe as n,
|
|
61746
61768
|
qfe as u
|
|
61747
61769
|
};
|
|
61748
|
-
//# sourceMappingURL=index-
|
|
61770
|
+
//# sourceMappingURL=index-BDoYsAYw.mjs.map
|