Skip to content

Commit

Permalink
fix: escaping unicode characters not triggered when loading a documen…
Browse files Browse the repository at this point in the history
…t in text mode
  • Loading branch information
josdejong committed Sep 28, 2022
1 parent da9f8e5 commit 9dedca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/modes/textmode/TextMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
try {
codeMirrorView = createCodeMirrorView({
target: codeMirrorRef,
initialText: !editorDisabled ? text : '',
initialText: !editorDisabled ? normalization.escapeValue(text) : '',
readOnly,
indentation
})
Expand Down

0 comments on commit 9dedca0

Please sign in to comment.