@mdxeditor/editor 3.52.0 → 3.52.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.
@@ -166,6 +166,8 @@ const linkDialogState$ = Cell({ type: "inactive" }, (r) => {
166
166
  map(([[selection], activeEditor, _, readOnly]) => {
167
167
  if ($isRangeSelection(selection) && activeEditor && !readOnly) {
168
168
  const node = getLinkNodeInSelection(selection);
169
+ if (!selection.isCollapsed())
170
+ return { type: "inactive" };
169
171
  if (node) {
170
172
  const rect = getSelectionRectangle(activeEditor);
171
173
  if (!rect) {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "*.css"
12
12
  ],
13
13
  "type": "module",
14
- "version": "3.52.0",
14
+ "version": "3.52.1",
15
15
  "description": "React component for rich text markdown editing",
16
16
  "scripts": {
17
17
  "build": "vite build",