diff --git a/js/functions.js b/js/functions.js index 46b579469f..2a1fe23958 100644 --- a/js/functions.js +++ b/js/functions.js @@ -3434,7 +3434,7 @@ $(document).ready(function() { $(document).ready(function() { var elm = $('#sqlquery'); if (elm.length > 0 && typeof CodeMirror != 'undefined') { - codemirror_editor = CodeMirror.fromTextArea(elm[0], {lineNumbers: true, matchBrackets: true, indentUnit: 4, mode: "text/x-mysql"}); + codemirror_editor = CodeMirror.fromTextArea(elm[0], {lineNumbers: true, matchBrackets: true, indentUnit: 4, mode: "text/x-mysql", lineWrapping: true}); } });