Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/rte.js
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2013-09-09 17:28:36 +0400
committerMadhura Jayaratne <madhura.cj@gmail.com>2013-09-09 17:28:36 +0400
commite345d72a528512c6d78c0a21dde89f3c54da8a7c (patch)
tree16a03fa0a29f2923c096cf034cca48e80e20dbd7 /js/rte.js
parentbebb8547c2ef568a78703deded144302efc8d5b5 (diff)
Line wrapping for CodeMirror edit areas
Diffstat (limited to 'js/rte.js')
-rw-r--r--js/rte.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/rte.js b/js/rte.js
index 1acb9ab894..37f5d7e457 100644
--- a/js/rte.js
+++ b/js/rte.js
@@ -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);