SQL autocomplete in RTE editors
Signed-off-by: Nisarg Jhaveri <nisarg.jhaveri@research.iiit.ac.in>
This commit is contained in:
parent
6cc3ea6eae
commit
a4c2cfea87
@ -142,11 +142,14 @@ RTE.COMMON = {
|
||||
var opts = {
|
||||
lineNumbers: true,
|
||||
matchBrackets: true,
|
||||
extraKeys: {"Ctrl-Space": "autocomplete"},
|
||||
hintOptions: {"completeSingle": false, "completeOnSingleClick": true},
|
||||
indentUnit: 4,
|
||||
mode: "text/x-mysql",
|
||||
lineWrapping: true
|
||||
};
|
||||
CodeMirror.fromTextArea($elm[0], opts);
|
||||
CodeMirror.fromTextArea($elm[0], opts)
|
||||
.on("inputRead", codemirrorAutocompleteOnInputRead);
|
||||
} else {
|
||||
PMA_ajaxShowMessage(data.error, false);
|
||||
}
|
||||
@ -338,12 +341,15 @@ RTE.COMMON = {
|
||||
var opts = {
|
||||
lineNumbers: true,
|
||||
matchBrackets: true,
|
||||
extraKeys: {"Ctrl-Space": "autocomplete"},
|
||||
hintOptions: {"completeSingle": false, "completeOnSingleClick": true},
|
||||
indentUnit: 4,
|
||||
mode: "text/x-mysql",
|
||||
lineWrapping: true
|
||||
};
|
||||
if (typeof CodeMirror != 'undefined') {
|
||||
that.syntaxHiglighter = CodeMirror.fromTextArea($elm[0], opts);
|
||||
that.syntaxHiglighter.on("inputRead", codemirrorAutocompleteOnInputRead);
|
||||
}
|
||||
// Execute item-specific code
|
||||
that.postDialogShow(data);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user