aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor/show_default.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/LocalFilesEditor/show_default.tpl')
-rw-r--r--plugins/LocalFilesEditor/show_default.tpl33
1 files changed, 6 insertions, 27 deletions
diff --git a/plugins/LocalFilesEditor/show_default.tpl b/plugins/LocalFilesEditor/show_default.tpl
index bf35586d4..ef6970d41 100644
--- a/plugins/LocalFilesEditor/show_default.tpl
+++ b/plugins/LocalFilesEditor/show_default.tpl
@@ -19,28 +19,12 @@
{combine_css path="plugins/LocalFilesEditor/locfiledit.css"}
{footer_script}
-function loadCodemirror() {ldelim}
- editor = CodeMirror.fromTextArea(document.getElementById("text"), {ldelim}
- matchBrackets: true,
- readOnly: true,
- mode: "{$CODEMIRROR_MODE}",
- tabMode: "shift"
- });
- jQuery("#showedit").hide();
- jQuery("#hideedit").show();
- jQuery.post("update_config.php", {ldelim} editarea: "on"});
-}
-
-function unloadCodemirror() {ldelim}
- editor.toTextArea();
- jQuery("#hideedit").hide();
- jQuery("#showedit").show();
- jQuery.post("update_config.php", {ldelim} editarea: "off"});
-}
-
-{if $LOAD_CODEMIRROR == 'on'}
-if (document.getElementById("text") != null) loadCodemirror();
-{/if}
+var editor = CodeMirror.fromTextArea(document.getElementById("text"), {ldelim}
+ matchBrackets: true,
+ readOnly: true,
+ mode: "{$CODEMIRROR_MODE}",
+ tabMode: "shift"
+});
{/footer_script}
<div id="LocalFilesEditor">
@@ -48,9 +32,4 @@ if (document.getElementById("text") != null) loadCodemirror();
<textarea id="text" rows="30" cols="90">{$DEFAULT_CONTENT}</textarea>
-<div id="editarea_buttons">
-<a href="javascript:loadCodemirror();" id="showedit">[{'locfiledit_enable_codemirror'|@translate}]</a>
-<a href="javascript:unloadCodemirror();" id="hideedit">[{'locfiledit_disable_codemirror'|@translate}]</a>
-</div>
-
</div>