Skip to content

Commit

Permalink
fix: initial content
Browse files Browse the repository at this point in the history
  • Loading branch information
17Amir17 committed Jun 9, 2024
1 parent d64db1b commit 97eb2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RichText/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const getInjectedJSBeforeContentLoad = (editor: EditorBridge) => {
: ''
}${
editor.initialContent
? `window.initialContent = '${editor.initialContent}';`
? `window.initialContent = ${JSON.stringify(editor.initialContent)};`
: ''
}
window.editable = ${editor.editable};
Expand Down

0 comments on commit 97eb2c9

Please sign in to comment.