Skip to content

Commit

Permalink
Merge pull request #3909 from Croc-ye/udecode/fix/table-mulit-cells-copy
Browse files Browse the repository at this point in the history
fix: copying form mulitple cells does not retain font attributes
  • Loading branch information
felixfeng33 authored Dec 25, 2024
2 parents 036ec58 + 6e81abe commit 11cdc5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/twelve-shoes-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@udecode/plate-table": patch
---

fix: copying form mulitple cells does not retain font attributes
2 changes: 1 addition & 1 deletion packages/table/src/lib/withSetFragmentDataTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const withSetFragmentDataTable: ExtendEditor<TableConfig> = ({
data.setData('text/html', divElement.innerHTML);

// set slate fragment
const selectedFragmentStr = JSON.stringify(tableNode);
const selectedFragmentStr = JSON.stringify([tableNode]);
const encodedFragment = window.btoa(
encodeURIComponent(selectedFragmentStr)
);
Expand Down

0 comments on commit 11cdc5c

Please sign in to comment.