Clipboard Copy content does not match user selection

Posted by: ksriram on 18 September 2019, 1:42 am EST

  • Posted 18 September 2019, 1:42 am EST

    In a cell with multiple lines, highlighting a single line by double clicking and then copying the line, copies all the content start from highlighted line until the end of cell.

    Steps to reproduce
    * In the editor add multiple lines by adding line breaks thru Ctrl + Enter
    * Select (highlight) a single line by double clicking
    * Copy the content and paste into a new cell
    * All content start from highlighted line until the end of the cell are copied into the clipboard

    Ideally the clipboard copy must copy only the content within the user selection.
  • Replied 18 September 2019, 8:23 pm EST

    Hi Karthikraj,

    We are able to replicate the issue at our end and hence we have forwarded it to the concerned team for further investigation of the issue. We will let you know about any updates regarding the same.
    The internal tracking id for the issue is SJS-1756.

    Regards
    Sharad
  • Replied 3 October 2019, 6:11 pm EST

    Hi Karthikraj,

    DevTeam has informed us that this is a limitation of SpreadJS as Spread editor uses br element inside span to display multiple lines whereas normal contenteditable div uses child div element to display multiple lines.

    Regards
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels