@creatorsn/powereditor3 0.2.6 → 0.2.7

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.
@@ -68459,6 +68459,11 @@ const e6 = /* @__PURE__ */ on(dge, [["render", pge]]), mge = /(\$\s|\\\(\s)$/, g
68459
68459
  };
68460
68460
  },
68461
68461
  watch: {
68462
+ thisPlaceholder(n) {
68463
+ n !== this.node.attrs.placeholder && this.updateAttributes({
68464
+ placeholder: n
68465
+ });
68466
+ },
68462
68467
  showPopper(n) {
68463
68468
  n && this.$nextTick(() => {
68464
68469
  this.showPos();
@@ -68498,10 +68503,20 @@ const e6 = /* @__PURE__ */ on(dge, [["render", pge]]), mge = /(\$\s|\\\(\s)$/, g
68498
68503
  } catch {
68499
68504
  return "";
68500
68505
  }
68506
+ },
68507
+ thisPlaceholder() {
68508
+ var e, t;
68509
+ return ((t = (e = this.editor.storage.defaultStorage.mentionItemTools) == null ? void 0 : e.placeholder) == null ? void 0 : t.call(
68510
+ e,
68511
+ this.node.attrs.currentItem,
68512
+ this.node.attrs.value
68513
+ )) || this.node.attrs.placeholder;
68501
68514
  }
68502
68515
  },
68503
68516
  mounted() {
68504
- this.outSideClickInit(), this.windowEventInit(), setTimeout(() => {
68517
+ this.outSideClickInit(), this.windowEventInit(), this.thisPlaceholder !== this.node.attrs.placeholder && this.updateAttributes({
68518
+ placeholder: this.thisPlaceholder
68519
+ }), setTimeout(() => {
68505
68520
  this.node.attrs.freeze || (this.show(), this.$refs.target.focus(), this.$refs.list.setFocus());
68506
68521
  }, 300), this.getFilterItems(this.node.attrs.value, "");
68507
68522
  },
@@ -68699,7 +68714,7 @@ function Age(n, e, t, r, i, o) {
68699
68714
  Ut(X("input", {
68700
68715
  "onUpdate:modelValue": e[0] || (e[0] = (c) => t.node.attrs.value = c),
68701
68716
  class: Ye(["power-editor-mention-input", [{ freeze: t.node.attrs.freeze }]]),
68702
- placeholder: t.node.attrs.placeholder,
68717
+ placeholder: o.thisPlaceholder,
68703
68718
  readonly: t.node.attrs.freeze,
68704
68719
  ref: "target",
68705
68720
  title: t.node.attrs.value,
@@ -68717,7 +68732,7 @@ function Age(n, e, t, r, i, o) {
68717
68732
  title: t.node.attrs.value,
68718
68733
  class: Ye(["power-editor-mention-placeholder", [{ show: t.node.attrs.freeze }]]),
68719
68734
  style: ut({ color: t.node.attrs.currentItem.color })
68720
- }, Ze(t.node.attrs.value ? t.node.attrs.value : t.node.attrs.placeholder), 15, Tge)
68735
+ }, Ze(t.node.attrs.value ? t.node.attrs.value : o.thisPlaceholder), 15, Tge)
68721
68736
  ])
68722
68737
  ]),
68723
68738
  _: 1
@@ -74775,6 +74790,7 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
74775
74790
  mentionClickCallback: () => {
74776
74791
  console.log("mentionClickCallback");
74777
74792
  },
74793
+ placeholder: () => "mention",
74778
74794
  isLoading: () => !1,
74779
74795
  headerForeground: () => this.foreground
74780
74796
  };