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();
}