@creatorsn/powereditor3 0.1.3 → 0.1.6
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/powereditor3.js +49 -14
- package/dist/powereditor3.umd.cjs +72 -72
- package/dist/types/editor/index.d.ts +5 -0
- package/dist/types/editor/src/components/bubbleToolBar.vue.d.ts +2 -0
- package/dist/types/editor/src/components/toolBar.vue.d.ts +2 -0
- package/dist/types/editor/src/index.vue.d.ts +5 -0
- package/package.json +1 -1
package/dist/powereditor3.js
CHANGED
|
@@ -57063,7 +57063,13 @@ const xr = (n, e = "en") => {
|
|
|
57063
57063
|
let t = hbe[n];
|
|
57064
57064
|
return t ? t[e] : n;
|
|
57065
57065
|
}, fbe = {
|
|
57066
|
-
emits: [
|
|
57066
|
+
emits: [
|
|
57067
|
+
"container-dblclick",
|
|
57068
|
+
"container-click",
|
|
57069
|
+
"update:width",
|
|
57070
|
+
"update:alignCenter",
|
|
57071
|
+
"update:caption"
|
|
57072
|
+
],
|
|
57067
57073
|
props: {
|
|
57068
57074
|
width: {
|
|
57069
57075
|
default: 100
|
|
@@ -57169,7 +57175,10 @@ const xr = (n, e = "en") => {
|
|
|
57169
57175
|
}));
|
|
57170
57176
|
},
|
|
57171
57177
|
newline() {
|
|
57172
|
-
this.editor.isEditable && (this.editor.commands.focus(), this.editor.commands.insertContentAt(
|
|
57178
|
+
this.editor.isEditable && (this.editor.commands.focus(), this.editor.commands.insertContentAt(
|
|
57179
|
+
this.getPos() + this.node.nodeSize - 1,
|
|
57180
|
+
"<br>"
|
|
57181
|
+
));
|
|
57173
57182
|
}
|
|
57174
57183
|
},
|
|
57175
57184
|
beforeUnmount() {
|
|
@@ -57191,7 +57200,10 @@ function bbe(n, e, t, r, i, o) {
|
|
|
57191
57200
|
}, e[19] || (e[19] = [
|
|
57192
57201
|
ne("i", null, null, -1)
|
|
57193
57202
|
]), 544), [
|
|
57194
|
-
[
|
|
57203
|
+
[
|
|
57204
|
+
an,
|
|
57205
|
+
t.alignCenter && (t.editor.isEditable || t.editor.storage.defaultStorage.showControlOnReadonly)
|
|
57206
|
+
]
|
|
57195
57207
|
]),
|
|
57196
57208
|
ne("div", {
|
|
57197
57209
|
class: "power-editor-media-slot-container",
|
|
@@ -57211,7 +57223,10 @@ function bbe(n, e, t, r, i, o) {
|
|
|
57211
57223
|
}, e[21] || (e[21] = [
|
|
57212
57224
|
ne("i", null, null, -1)
|
|
57213
57225
|
]), 544), [
|
|
57214
|
-
[
|
|
57226
|
+
[
|
|
57227
|
+
an,
|
|
57228
|
+
t.editor.isEditable || t.editor.storage.defaultStorage.showControlOnReadonly
|
|
57229
|
+
]
|
|
57215
57230
|
]),
|
|
57216
57231
|
nn(ne("div", {
|
|
57217
57232
|
draggable: "true",
|
|
@@ -57272,7 +57287,10 @@ function bbe(n, e, t, r, i, o) {
|
|
|
57272
57287
|
__: [25]
|
|
57273
57288
|
}, 8, ["background", "theme", "title"])
|
|
57274
57289
|
], 512), [
|
|
57275
|
-
[
|
|
57290
|
+
[
|
|
57291
|
+
an,
|
|
57292
|
+
t.editor.isEditable || t.editor.storage.defaultStorage.showControlOnReadonly
|
|
57293
|
+
]
|
|
57276
57294
|
]),
|
|
57277
57295
|
nn(ne("div", mbe, [
|
|
57278
57296
|
fe(s, {
|
|
@@ -57315,9 +57333,12 @@ function bbe(n, e, t, r, i, o) {
|
|
|
57315
57333
|
"is-box-shadow": !0,
|
|
57316
57334
|
"border-color": "rgba(200, 200, 200, 0.1)",
|
|
57317
57335
|
"focus-border-color": t.foreground,
|
|
57318
|
-
onKeyup: e[18] || (e[18] = Co(
|
|
57319
|
-
|
|
57320
|
-
|
|
57336
|
+
onKeyup: e[18] || (e[18] = Co(
|
|
57337
|
+
() => {
|
|
57338
|
+
i.show.captionBox = !1, o.newline();
|
|
57339
|
+
},
|
|
57340
|
+
["enter"]
|
|
57341
|
+
))
|
|
57321
57342
|
}, null, 8, ["modelValue", "theme", "placeholder", "focus-border-color"]), [
|
|
57322
57343
|
[an, i.show.captionBox]
|
|
57323
57344
|
])
|
|
@@ -73732,6 +73753,12 @@ const _5 = /* @__PURE__ */ yn(a3e, [["render", u3e]]), d3e = {
|
|
|
73732
73753
|
f: "whitesmoke",
|
|
73733
73754
|
b: "rgba(36, 36, 36, 1)"
|
|
73734
73755
|
};
|
|
73756
|
+
},
|
|
73757
|
+
formatPainterStatus() {
|
|
73758
|
+
return !this.editor || !this.editor.storage || !this.editor.storage.formatPainter ? "off" : this.editor.storage.formatPainter.formatPainterStatus;
|
|
73759
|
+
},
|
|
73760
|
+
showFormatPainter() {
|
|
73761
|
+
this.formatPainterStatus;
|
|
73735
73762
|
}
|
|
73736
73763
|
},
|
|
73737
73764
|
mounted() {
|
|
@@ -73933,8 +73960,8 @@ function h3e(n, e, t, r, i, o) {
|
|
|
73933
73960
|
class: "power-editor-cmd-btn",
|
|
73934
73961
|
theme: i.thisTheme,
|
|
73935
73962
|
"border-color": "transparent",
|
|
73936
|
-
background: o.getBackground(
|
|
73937
|
-
foreground: o.getForeground(
|
|
73963
|
+
background: o.getBackground(o.showFormatPainter),
|
|
73964
|
+
foreground: o.getForeground(o.showFormatPainter),
|
|
73938
73965
|
title: o.getTitle("Format Painter"),
|
|
73939
73966
|
onClick: o.formatPainterClick,
|
|
73940
73967
|
onDblclick: o.formatPainterDoubleClick
|
|
@@ -74445,6 +74472,12 @@ const v5 = /* @__PURE__ */ yn(d3e, [["render", h3e]]), f3e = {
|
|
|
74445
74472
|
f: "whitesmoke",
|
|
74446
74473
|
b: "rgba(36, 36, 36, 1)"
|
|
74447
74474
|
};
|
|
74475
|
+
},
|
|
74476
|
+
formatPainterStatus() {
|
|
74477
|
+
return !this.editor || !this.editor.storage || !this.editor.storage.formatPainter ? "off" : this.editor.storage.formatPainter.formatPainterStatus;
|
|
74478
|
+
},
|
|
74479
|
+
showFormatPainter() {
|
|
74480
|
+
this.formatPainterStatus;
|
|
74448
74481
|
}
|
|
74449
74482
|
},
|
|
74450
74483
|
mounted() {
|
|
@@ -74593,8 +74626,8 @@ function p3e(n, e, t, r, i, o) {
|
|
|
74593
74626
|
fe(s, {
|
|
74594
74627
|
class: "power-editor-bubble-cmd-btn",
|
|
74595
74628
|
theme: i.thisTheme,
|
|
74596
|
-
background: o.getBackground(
|
|
74597
|
-
foreground: o.getForeground(
|
|
74629
|
+
background: o.getBackground(o.showFormatPainter),
|
|
74630
|
+
foreground: o.getForeground(o.showFormatPainter),
|
|
74598
74631
|
"border-color": "transparent",
|
|
74599
74632
|
title: o.getTitle("Format Painter"),
|
|
74600
74633
|
onClick: o.formatPainterClick,
|
|
@@ -74761,6 +74794,9 @@ const y5 = /* @__PURE__ */ yn(f3e, [["render", p3e]]), m3e = { class: "power-edi
|
|
|
74761
74794
|
computed: {
|
|
74762
74795
|
formatPainterStatus() {
|
|
74763
74796
|
return !this.editor || !this.editor.storage || !this.editor.storage.formatPainter ? "off" : this.editor.storage.formatPainter.formatPainterStatus;
|
|
74797
|
+
},
|
|
74798
|
+
showFormatPainter() {
|
|
74799
|
+
this.formatPainterStatus;
|
|
74764
74800
|
}
|
|
74765
74801
|
},
|
|
74766
74802
|
mounted() {
|
|
@@ -75230,7 +75266,7 @@ const y5 = /* @__PURE__ */ yn(f3e, [["render", p3e]]), m3e = { class: "power-edi
|
|
|
75230
75266
|
}, [
|
|
75231
75267
|
Rt(o.$slots, "front-content"),
|
|
75232
75268
|
fe(Yy(m3), {
|
|
75233
|
-
class: St(["tip-tap-editor", [{ "format-painter": o.
|
|
75269
|
+
class: St(["tip-tap-editor", [{ "format-painter": o.showFormatPainter }]]),
|
|
75234
75270
|
editor: o.editor,
|
|
75235
75271
|
theme: n.theme,
|
|
75236
75272
|
ref: "editor",
|
|
@@ -75249,7 +75285,6 @@ const y5 = /* @__PURE__ */ yn(f3e, [["render", p3e]]), m3e = { class: "power-edi
|
|
|
75249
75285
|
foreground: n.foreground,
|
|
75250
75286
|
language: n.language,
|
|
75251
75287
|
"tippy-options": { duration: 100 },
|
|
75252
|
-
ref: "bubbleToolBar",
|
|
75253
75288
|
mobileMode: o.mobileMode,
|
|
75254
75289
|
showSave: n.showSave
|
|
75255
75290
|
}, null, 8, ["editor", "theme", "foreground", "language", "mobileMode", "showSave"])) : Yt("", !0)
|