@dialpad/dialtone-vue 3.219.0 → 3.219.1

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.
@@ -2761,10 +2761,10 @@ var Vi = {
2761
2761
  return;
2762
2762
  }
2763
2763
  r.find((t) => t.test(e)) || (e = `${i}${e}`), this.editor.chain().focus().extendMarkRange("link").run();
2764
- let a = this.editor?.view?.state?.selection;
2765
- this.editor.chain().focus().insertContent(t).setTextSelection({
2764
+ let a = this.editor?.view?.state?.selection, o = t || e;
2765
+ this.editor.chain().focus().insertContent(o).setTextSelection({
2766
2766
  from: a.from,
2767
- to: a.from + t.length
2767
+ to: a.from + o.length
2768
2768
  }).setLink({
2769
2769
  href: e,
2770
2770
  class: n.class
@@ -2953,4 +2953,4 @@ var Gi = /* @__PURE__ */ i(Hi, [["render", Wi]]);
2953
2953
  //#endregion
2954
2954
  export { Gi as t };
2955
2955
 
2956
- //# sourceMappingURL=rich_text_editor-Ba67C4Uk.js.map
2956
+ //# sourceMappingURL=rich_text_editor-jVEuSPUG.js.map