@flozy/editor 10.3.6 → 10.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1007,7 +1007,7 @@ const getCopiedHTMLFormat = domRange => {
|
|
1007
1007
|
const getCopiedSlateFormat = editor => {
|
1008
1008
|
// Get Slate fragment
|
1009
1009
|
const fragment = JSON.stringify(Editor.fragment(editor, editor.selection));
|
1010
|
-
const encodedFragment = window.btoa(
|
1010
|
+
const encodedFragment = window.btoa(encodeURIComponent(fragment));
|
1011
1011
|
return encodedFragment;
|
1012
1012
|
};
|
1013
1013
|
export const handleCopy = (event, editor) => {
|