Skip to content

Commit

Permalink
[#66012] Fix copy button
Browse files Browse the repository at this point in the history
  • Loading branch information
Trzcin committed Sep 19, 2024
1 parent bf6622c commit 5a72366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useText.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export const useText = ({ initialText, transforms, customRoles, preview, backsla
},
copy() {
copyHtmlAsRichText(
splitIntoChunks(window.myst_editor.text)
splitIntoChunks(window.myst_editor.text, {}, [])
.map((c) => c.html)
.join("\n"),
);
Expand Down

0 comments on commit 5a72366

Please sign in to comment.