瀏覽代碼

GLUE模式(PHP),代码编辑器优化

xuxueli 6 年之前
父節點
當前提交
8c2f50e982
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      xxl-job-admin/src/main/webapp/WEB-INF/template/jobcode/jobcode.index.ftl

+ 4 - 0
xxl-job-admin/src/main/webapp/WEB-INF/template/jobcode/jobcode.index.ftl

@@ -130,6 +130,7 @@
     <#elseif jobInfo.glueType == "GLUE_PHP" >
     <#elseif jobInfo.glueType == "GLUE_PHP" >
         <#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/php/php.js" />
         <#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/php/php.js" />
         <#assign glueTypeIdeMode = "text/x-php" />
         <#assign glueTypeIdeMode = "text/x-php" />
+        <#assign glueTypeModeSrc02 = "${request.contextPath}/static/plugins/codemirror/mode/clike/clike.js" />
     <#elseif jobInfo.glueType == "GLUE_NODEJS" >
     <#elseif jobInfo.glueType == "GLUE_NODEJS" >
         <#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/javascript/javascript.js" />
         <#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/javascript/javascript.js" />
         <#assign glueTypeIdeMode = "text/javascript" />
         <#assign glueTypeIdeMode = "text/javascript" />
@@ -138,6 +139,9 @@
 
 
 <script src="${request.contextPath}/static/plugins/codemirror/lib/codemirror.js"></script>
 <script src="${request.contextPath}/static/plugins/codemirror/lib/codemirror.js"></script>
 <script src="${glueTypeModeSrc}"></script>
 <script src="${glueTypeModeSrc}"></script>
+<#if glueTypeModeSrc02?exists>
+    <script src="${glueTypeModeSrc02}"></script>
+</#if>
 <script src="${request.contextPath}/static/plugins/codemirror/addon/hint/show-hint.js"></script>
 <script src="${request.contextPath}/static/plugins/codemirror/addon/hint/show-hint.js"></script>
 <script src="${request.contextPath}/static/plugins/codemirror/addon/hint/anyword-hint.js"></script>
 <script src="${request.contextPath}/static/plugins/codemirror/addon/hint/anyword-hint.js"></script>