@ebl-vue/editorjs 2.31.32 → 2.31.46

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/editorjs.mjs CHANGED
@@ -121,7 +121,7 @@ function Ie(n, e, t = "log", o, i = "color: inherit") {
121
121
  break;
122
122
  }
123
123
  o && r.push(o);
124
- const a = "Editor.js 2.31.32", l = `line-height: 1em;
124
+ const a = "Editor.js 2.31.46", l = `line-height: 1em;
125
125
  color: #006FEA;
126
126
  display: inline-block;
127
127
  font-size: 11px;
@@ -247,7 +247,7 @@ function ht(n, ...e) {
247
247
  }
248
248
  function vt(n) {
249
249
  const e = oi();
250
- return n = n.replace(/shift/gi, "").replace(/backspace/gi, "⌫").replace(/enter/gi, "⏎").replace(/up/gi, "↑").replace(/left/gi, "→").replace(/down/gi, "↓").replace(/right/gi, "←").replace(/escape/gi, "⎋").replace(/insert/gi, "Ins").replace(/delete/gi, "␡").replace(/\+/gi, " + "), e.mac ? n = n.replace(/ctrl|cmd/gi, "⌘").replace(/alt/gi, "⌥") : n = n.replace(/cmd/gi, "Ctrl").replace(/windows/gi, "WIN"), n;
250
+ return n = n.replace(/shift/gi, "Shift").replace(/backspace/gi, "⌫").replace(/enter/gi, "⏎").replace(/up/gi, "↑").replace(/left/gi, "→").replace(/down/gi, "↓").replace(/right/gi, "←").replace(/escape/gi, "⎋").replace(/insert/gi, "Ins").replace(/delete/gi, "␡").replace(/\+/gi, " + "), e.mac ? n = n.replace(/ctrl|cmd/gi, "⌘").replace(/alt/gi, "⌥") : n = n.replace(/cmd/gi, "Ctrl").replace(/windows/gi, "WIN"), n;
251
251
  }
252
252
  function ni(n) {
253
253
  try {
@@ -9503,7 +9503,7 @@ class La extends E {
9503
9503
  }), {
9504
9504
  time: +/* @__PURE__ */ new Date(),
9505
9505
  blocks: t,
9506
- version: "2.31.32"
9506
+ version: "2.31.46"
9507
9507
  };
9508
9508
  }
9509
9509
  }
@@ -9824,7 +9824,7 @@ class bo {
9824
9824
  * Input for the link
9825
9825
  */
9826
9826
  renderActions() {
9827
- this.nodes.inputWrap = document.createElement("div"), this.nodes.inputWrap.classList.add(this.CSS.inputWrap), this.nodes.input = document.createElement("input"), this.nodes.input.placeholder = this.i18n.t("Add a link"), this.nodes.input.enterKeyHint = "done", this.nodes.input.classList.add(this.CSS.input), this.nodes.input.addEventListener("keydown", (t) => {
9827
+ this.nodes.inputWrap = document.createElement("div"), this.nodes.inputWrap.classList.add(this.CSS.inputWrap), this.nodes.input = document.createElement("input"), this.nodes.input.placeholder = this.i18n.t("Add a link"), this.nodes.input.enterKeyHint = "done", this.nodes.input.classList.add(this.CSS.input), this.nodes.input.setAttribute("name", "link"), this.nodes.input.addEventListener("keydown", (t) => {
9828
9828
  t.keyCode === this.ENTER_KEY && this.enterPressed(t);
9829
9829
  }), this.nodes.inputWrap.appendChild(this.nodes.input);
9830
9830
  const e = document.createElement("button");
@@ -9854,9 +9854,9 @@ class bo {
9854
9854
  checkState() {
9855
9855
  const e = this.selection.findParentTag("A");
9856
9856
  if (e) {
9857
- this.nodes.button.innerHTML = bs, this.nodes.button.classList.add(this.CSS.buttonUnlink), this.nodes.button.classList.add(this.CSS.buttonActive), this.openActions();
9858
- const t = e.getAttribute("href");
9859
- this.nodes.input.value = t !== "null" ? t : "", this.selection.save();
9857
+ this.nodes.button.innerHTML = bs, this.nodes.button.classList.add(this.CSS.buttonUnlink), this.nodes.button.classList.add(this.CSS.buttonActive);
9858
+ let t = e.getAttribute("href");
9859
+ (t === "null" || t === null) && (t = ""), this.nodes.input.setAttribute("value", t), this.openActions(!0), this.selection.save();
9860
9860
  } else
9861
9861
  this.nodes.button.innerHTML = Bo, this.nodes.button.classList.remove(this.CSS.buttonUnlink), this.nodes.button.classList.remove(this.CSS.buttonActive);
9862
9862
  return !!e;
@@ -11245,7 +11245,7 @@ class Ka {
11245
11245
  class Xa {
11246
11246
  /** Editor version */
11247
11247
  static get version() {
11248
- return "2.31.32";
11248
+ return "2.31.46";
11249
11249
  }
11250
11250
  /**
11251
11251
  * @param {EditorConfig|string|undefined} [configuration] - user configuration
@@ -11299,5 +11299,6 @@ class Xa {
11299
11299
  }
11300
11300
  }
11301
11301
  export {
11302
+ b as SelectionUtils,
11302
11303
  Xa as default
11303
11304
  };