X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/f413fc528a8136c2ad8d33a57b3615fa22e55e93..refs/pull/1723/head:/resources/js/services/code.js diff --git a/resources/js/services/code.js b/resources/js/services/code.js index ca66bdb5a..eedbda4bb 100644 --- a/resources/js/services/code.js +++ b/resources/js/services/code.js @@ -102,6 +102,7 @@ function highlightElem(elem) { value: content, mode: mode, lineNumbers: true, + lineWrapping: false, theme: getTheme(), readOnly: true }); @@ -188,6 +189,7 @@ function wysiwygView(elem) { value: content, mode: getMode(lang), lineNumbers: true, + lineWrapping: false, theme: getTheme(), readOnly: true }); @@ -213,8 +215,8 @@ function popupEditor(elem, modeSuggestion) { value: content, mode: getMode(modeSuggestion), lineNumbers: true, - theme: getTheme(), - lineWrapping: true + lineWrapping: false, + theme: getTheme() }); } @@ -250,8 +252,8 @@ function markdownEditor(elem) { value: content, mode: "markdown", lineNumbers: true, - theme: getTheme(), lineWrapping: true, + theme: getTheme(), scrollPastEnd: true, };