From b75b6434c00cda2eb59a9e3ac06975ab3074df4d Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Mon, 8 May 2023 14:51:08 +0100 Subject: [PATCH] turn on wordwrap for markdown --- CommonUI/src/Components/CodeEditor/CodeEditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CommonUI/src/Components/CodeEditor/CodeEditor.tsx b/CommonUI/src/Components/CodeEditor/CodeEditor.tsx index 6e36ce6da4f..44f883197cb 100644 --- a/CommonUI/src/Components/CodeEditor/CodeEditor.tsx +++ b/CommonUI/src/Components/CodeEditor/CodeEditor.tsx @@ -104,7 +104,7 @@ const CodeEditor: FunctionComponent = ( { if (code === undefined) { @@ -166,7 +166,7 @@ const CodeEditor: FunctionComponent = ( suggestOnTriggerCharacters: true, wordBasedSuggestions: true, wordSeparators: '~!@#$%^&*()-=+[{]}|;:\'",.<>/?', - wordWrap: 'off', + wordWrap: props.type === CodeType.Markdown ? 'on' : 'off', wordWrapBreakAfterCharacters: '\t})]?|&,;', wordWrapBreakBeforeCharacters: '{([+', wordWrapColumn: 80,