udecode / plate

Rich-text editor with shadcn/ui
https://platejs.org
Other
10.77k stars 658 forks source link

Editor is uneditable when selecting a linked area and then pressing the link mark button #3603

Open BasicallyPolaris opened 16 hours ago

BasicallyPolaris commented 16 hours ago

Description

If you currently create a link and then select the created link with your mouse, clicking on the link button again should result in the link menu for the area to appear OR should probably be selected if an area is selected that has a link and no link OR should allow for the linking with the selected text pasted into the link menu.

Currently however, this results in the editor "freezing" or rerendering (?), not exactly sure, the editor becomes uneditable for a short time, after several clicks you can then access the editor again.

https://github.com/user-attachments/assets/d9cfa345-c461-4e82-804e-ea244ceb5d19

Reproduction URL

No response

Reproduction steps

1. Go to https://platejs.org/
2. Create a text with a link
3. Select the created link area with your mouse
4. Click the Link Button
5. The editor will now freeze

Plate version

39.0.0

Slate React version

0.103.0

Screenshots

No response

Logs

No response

Browsers

Chrome

Funding

Fund with Polar