mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
bug fix: wp manager
This commit is contained in:
@@ -87,12 +87,16 @@ fileManager.controller('editFileCtrl', function ($scope, $http, $window) {
|
||||
|
||||
cm.setValue(response.data.fileContents);
|
||||
cm.setSize(null, 800);
|
||||
cm.on("keyup", function (cm, event) {
|
||||
if (!cm.state.completionActive && event.keyCode === 9) {
|
||||
event.preventDefault();
|
||||
CodeMirror.commands.autocomplete(cm, null, {completeSingle: false});
|
||||
}
|
||||
});
|
||||
|
||||
// cm.on("keyup", function (cm, event) {
|
||||
// if(event.keyCode === 9){
|
||||
// event.preventDefault();
|
||||
// event.stopPropagation();
|
||||
// }
|
||||
// if (!cm.state.completionActive && event.keyCode === 9) {
|
||||
// CodeMirror.commands.autocomplete(cm, null, {completeSingle: false});
|
||||
// }
|
||||
// });
|
||||
|
||||
} else {
|
||||
$scope.errorMessageEditor = false;
|
||||
|
||||
Reference in New Issue
Block a user