vdc-editor 0.1.83 → 0.1.85
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 +2 -1
- package/lib/vdc-editor.mjs.map +1 -1
- package/lib/vdc-editor.umd.js +2 -2
- package/lib/vdc-editor.umd.js.map +1 -1
- package/package.json +196 -196
package/lib/vdc-editor.mjs
CHANGED
|
@@ -42096,6 +42096,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
|
|
|
42096
42096
|
content: r.modelValue,
|
|
42097
42097
|
extensions: s.concat(l.value),
|
|
42098
42098
|
editable: !r.isReadOnly,
|
|
42099
|
+
autofocus: !0,
|
|
42099
42100
|
onUpdate: ({ editor: m }) => {
|
|
42100
42101
|
o("update:modelValue", m.getHTML());
|
|
42101
42102
|
}
|
|
@@ -42376,7 +42377,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
|
|
|
42376
42377
|
l.value = !0;
|
|
42377
42378
|
}
|
|
42378
42379
|
}, C = () => {
|
|
42379
|
-
if (!n.editor) return;
|
|
42380
|
+
if (!n.editor || u.value) return;
|
|
42380
42381
|
const { view: S, state: _ } = n.editor, { from: k, to: T } = _.selection, A = _.doc.textBetween(k, T, " ").trim();
|
|
42381
42382
|
i.from = k, i.to = T, i.text = A, s.value = A;
|
|
42382
42383
|
let D = "";
|