X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/fccc112cc104ea9d53f33eb64612095e17f999a7..refs/pull/1587/head:/resources/assets/js/services/code.js diff --git a/resources/assets/js/services/code.js b/resources/assets/js/services/code.js index 1e0e48289..4ab25aeb7 100644 --- a/resources/assets/js/services/code.js +++ b/resources/assets/js/services/code.js @@ -102,6 +102,7 @@ function highlightElem(elem) { value: content, mode: mode, lineNumbers: true, + lineWrapping: true, theme: getTheme(), readOnly: true }); @@ -188,6 +189,7 @@ function wysiwygView(elem) { value: content, mode: getMode(lang), lineNumbers: true, + lineWrapping: true, theme: getTheme(), readOnly: true }); @@ -213,8 +215,8 @@ function popupEditor(elem, modeSuggestion) { value: content, mode: getMode(modeSuggestion), lineNumbers: true, - theme: getTheme(), - lineWrapping: true + lineWrapping: true, + theme: getTheme() }); } @@ -254,8 +256,8 @@ function markdownEditor(elem) { value: content, mode: "markdown", lineNumbers: true, - theme: getTheme(), lineWrapping: true, + theme: getTheme(), scrollPastEnd: true, }); }