Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy table cell styles #1431

Merged
merged 4 commits into from
Nov 25, 2022
Merged

Copy table cell styles #1431

merged 4 commits into from
Nov 25, 2022

Conversation

juliaroldi
Copy link
Contributor

@juliaroldi juliaroldi commented Nov 22, 2022

When paste a table within a table, also copy the cell style.
copyTableCellStyle

} else {
cell.td = document.createElement('td');
}
}
}
currentTable.writeBack();

currentTable.writeBack(true /* skipApplyFormat*/);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if I apply format later, say I pasted a table into a table, then I insert a row or column, what will happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm using saveMetadata with bgColorOverride: true, then write applyFormat will not apply format to this cells.

@juliaroldi juliaroldi merged commit 3afe4ae into master Nov 25, 2022
@juliaroldi juliaroldi deleted the u/juliaroldi/copy-cell-style branch November 25, 2022 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants