@trafica/editor 1.0.13 → 1.0.14

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/index.mjs CHANGED
@@ -6110,13 +6110,6 @@ function LinkButton({
6110
6110
  const href = trimmed;
6111
6111
  const text = displayText.trim() || void 0;
6112
6112
  insertLink(href, text)(engine);
6113
- const sel = engine.getState().selection;
6114
- if (sel && !sel.isCollapsed) {
6115
- const { to } = normalizeRange(sel.anchor, sel.focus);
6116
- const tr = createTransaction();
6117
- tr.steps.push(tr_setSelection(makeCollapsedSelection(makePosition(to.path, to.offset))));
6118
- engine.dispatch(tr);
6119
- }
6120
6113
  closePopup();
6121
6114
  };
6122
6115
  const handleRemove = () => {