Line wrapping for CodeMirror edit areas

This commit is contained in:
Madhura Jayaratne 2013-09-09 18:58:36 +05:30
parent bebb8547c2
commit e345d72a52
3 changed files with 12 additions and 6 deletions

View File

@ -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);

View File

@ -575,7 +575,8 @@ AJAX.registerOnload('server_privileges.js', function () {
lineNumbers: true,
matchBrackets: true,
indentUnit: 4,
mode: "text/x-mysql"
mode: "text/x-mysql",
lineWrapping: true
}
);
}
@ -593,7 +594,8 @@ AJAX.registerOnload('server_privileges.js', function () {
lineNumbers: true,
matchBrackets: true,
indentUnit: 4,
mode: "text/x-mysql"
mode: "text/x-mysql",
lineWrapping: true
}
);
}
@ -629,7 +631,8 @@ AJAX.registerOnload('server_privileges.js', function () {
lineNumbers: true,
matchBrackets: true,
indentUnit: 4,
mode: "text/x-mysql"
mode: "text/x-mysql",
lineWrapping: true
}
);
}

View File

@ -94,7 +94,8 @@ AJAX.registerOnload('server_status_monitor.js', function () {
lineNumbers: true,
matchBrackets: true,
indentUnit: 4,
mode: "text/x-mysql"
mode: "text/x-mysql",
lineWrapping: true
}
);
}