diff --git a/plugins/fail2ban/js/fail2ban.js b/plugins/fail2ban/js/fail2ban.js index 9813fca20..700165af4 100755 --- a/plugins/fail2ban/js/fail2ban.js +++ b/plugins/fail2ban/js/fail2ban.js @@ -61,5 +61,21 @@ function f2bBanIp(){ '; + $(".soft-man-con").html(con); + $("#textBody").empty(); + var editor = CodeMirror.fromTextArea(document.getElementById("textBody"), { + extraKeys: { + "Ctrl-Space": "autocomplete", + "Ctrl-F": "findPersistent", + "Ctrl-H": "replaceAll", + "Ctrl-S": function() { + $("#textBody").text(editor.getValue()); + // pluginConfigSave(fileName); + } + }, + lineNumbers: true, + matchBrackets:true, + }); + editor.focus(); }