source: branches/2.2/plugins/LocalFilesEditor/show_default.tpl @ 10311

Revision 10311, 1.9 KB checked in by patdenice, 9 years ago (diff)

merge r10309 from trunk to branch 2.2
Always load codemirror

  • Property svn:eol-style set to LF
Line 
1{html_head}
2<style type="text/css">#headbranch, #theHeader, #copyright {ldelim} display: none; }</style>
3{/html_head}
4{combine_script id="jquery"}
5
6{combine_script id="codemirror" path="plugins/LocalFilesEditor/codemirror/lib/codemirror.js"}
7{combine_script id="codemirror.xml" require="codemirror" path="plugins/LocalFilesEditor/codemirror/mode/xml/xml.js"}
8{combine_script id="codemirror.javascript" require="codemirror" path="plugins/LocalFilesEditor/codemirror/mode/javascript/javascript.js"}
9{combine_script id="codemirror.css" require="codemirror" path="plugins/LocalFilesEditor/codemirror/mode/css/css.js"}
10{combine_script id="codemirror.clike" require="codemirror" path="plugins/LocalFilesEditor/codemirror/mode/clike/clike.js"}
11{combine_script id="codemirror.htmlmixed" require="codemirror.xml,codemirror.javascript,codemirror.css" path="plugins/LocalFilesEditor/codemirror/mode/htmlmixed/htmlmixed.js"}
12{combine_script id="codemirror.php" require="codemirror.xml,codemirror.javascript,codemirror.css,codemirror.clike" path="plugins/LocalFilesEditor/codemirror/mode/php/php.js"}
13
14{combine_css path="plugins/LocalFilesEditor/codemirror/lib/codemirror.css"}
15{combine_css path="plugins/LocalFilesEditor/codemirror/mode/xml/xml.css"}
16{combine_css path="plugins/LocalFilesEditor/codemirror/mode/javascript/javascript.css"}
17{combine_css path="plugins/LocalFilesEditor/codemirror/mode/css/css.css"}
18{combine_css path="plugins/LocalFilesEditor/codemirror/mode/clike/clike.css"}
19{combine_css path="plugins/LocalFilesEditor/locfiledit.css"}
20
21{footer_script}
22var editor = CodeMirror.fromTextArea(document.getElementById("text"), {ldelim}
23  matchBrackets: true,
24  readOnly: true,
25  mode: "{$CODEMIRROR_MODE}",
26  tabMode: "shift"
27});
28{/footer_script}
29
30<div id="LocalFilesEditor">
31<div style="overflow:auto;"><b>{$TITLE}</b></div>
32
33<textarea id="text" rows="30" cols="90">{$DEFAULT_CONTENT}</textarea>
34
35</div>
Note: See TracBrowser for help on using the repository browser.