jspreadsheet / jspreadsheet/ce

Styles are not applied when pasting across worksheets.

Open
#1,719 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
JavaScript
Stars
7.2k
Forks
890
PR merge metrics
No merged PRs in 30d

Description

currently(v5), pasting styles cannot applied across worksheets.
it appears that each worksheet instance has independent "copy"data.

proposal

share "copy"data across worksheets by moving 'data' and 'hashstring', 'style' properties from WorksheetInstance to SpreadsheetInstance.

test

https://github.com/ykawakamy/ce/blob/b0fdca86e7da88d007f29dff3ffcf8a1139c64bc/test/paste.cjs#L338-L363

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the WorksheetInstance and SpreadsheetInstance handling of copy data, including the data, hashstring, and style properties. Run the paste regression test at test/paste.cjs#L338-L363 and inspect how copying and pasting behave across worksheets. Done means styles are retained when pasting across worksheet instances and the referenced test passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.