diff options
-rw-r--r-- | src/view/com/composer/text-input/TextInput.web.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/composer/text-input/TextInput.web.tsx b/src/view/com/composer/text-input/TextInput.web.tsx index 06ff9836c..d5db7bcb6 100644 --- a/src/view/com/composer/text-input/TextInput.web.tsx +++ b/src/view/com/composer/text-input/TextInput.web.tsx @@ -221,7 +221,9 @@ export const TextInput = React.forwardRef(function TextInputImpl( } }, }, - content: generateJSON(richtext.text.toString(), extensions), + content: generateJSON(richtext.text.toString(), extensions, { + preserveWhitespace: 'full', + }), autofocus: 'end', editable: true, injectCSS: true, |