diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2013-09-09 17:28:36 +0400 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2013-09-09 17:28:36 +0400 |
commit | e345d72a528512c6d78c0a21dde89f3c54da8a7c (patch) | |
tree | 16a03fa0a29f2923c096cf034cca48e80e20dbd7 /js/rte.js | |
parent | bebb8547c2ef568a78703deded144302efc8d5b5 (diff) |
Line wrapping for CodeMirror edit areas
Diffstat (limited to 'js/rte.js')
-rw-r--r-- | js/rte.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -143,7 +143,8 @@ RTE.COMMON = { lineNumbers: true, matchBrackets: true, indentUnit: 4, - mode: "text/x-mysql" + mode: "text/x-mysql", + lineWrapping: true }; CodeMirror.fromTextArea($elm[0], opts); } else { @@ -331,7 +332,8 @@ RTE.COMMON = { lineNumbers: true, matchBrackets: true, indentUnit: 4, - mode: "text/x-mysql" + mode: "text/x-mysql", + lineWrapping: true }; if (typeof CodeMirror != 'undefined') { that.syntaxHiglighter = CodeMirror.fromTextArea($elm[0], opts); |