udecode / plate

A rich-text editor powered by AI
https://platejs.org
Other
12k stars 733 forks source link

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

Closed BasicallyPolaris closed 1 month ago

BasicallyPolaris commented 1 month 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

sakshikale14 commented 1 month ago

@zbeyens should we close this issue given that #3609 was merged?