microsoft / roosterjs

roosterjs is a framework-independent javascript rich text editor.
Other
1.19k stars 161 forks source link

Select an Image and cmd+c will cause the selection change #2790

Closed Echo-az closed 2 months ago

Echo-az commented 2 months ago

Describe the bug Select an image then cmd+copy will cause the selection jump to the beginning of the editor. Clicking it twice has the same effect. It seems like Safari only.

To Reproduce Steps to reproduce the behavior:

  1. Go to RoosterJS Demo Site in Safari
  2. Insert an image and select it
  3. Cmd+C to copy it

Expected behavior Selection doesn't change

Screenshots Selection changed, cursor goes to the beginning of the editor.

Device Information

romanisa commented 2 months ago

@juliaroldi can you please take a look?