diff options
Diffstat (limited to '')
-rw-r--r-- | plugins/LocalFilesEditor/admin.tpl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/LocalFilesEditor/admin.tpl b/plugins/LocalFilesEditor/admin.tpl index 252885656..d59df2f27 100644 --- a/plugins/LocalFilesEditor/admin.tpl +++ b/plugins/LocalFilesEditor/admin.tpl @@ -14,11 +14,12 @@ {combine_css path="plugins/LocalFilesEditor/locfiledit.css"} {footer_script} -var editor = CodeMirror.fromTextArea(document.getElementById("text"), {ldelim} - matchBrackets: true, - mode: "{$CODEMIRROR_MODE}", - tabMode: "shift" -}); +if (document.getElementById("text") != null) + var editor = CodeMirror.fromTextArea(document.getElementById("text"), {ldelim} + matchBrackets: true, + mode: "{$CODEMIRROR_MODE}", + tabMode: "shift" + }); {/footer_script} <div class="titrePage"> |