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