Fix: Rich Text Editor - Copy/Paste Text from Table Not Behaving Properly

What does this MR do and why?

If contents of a single cell are copied, only the content should be copied. If more than one cells are selected and copied, it should be copied as a table.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
https://gitlab.com/gitlab-org/gitlab/uploads/3ece5287d91c50162c145ed597f57b12/GIF_30.08.2023_09-36-08.gif 423753_unexpected_copy_paste_behaviour_fix.mp4

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #423753 (closed)

Edited by Himanshu Kapoor

Merge request reports