Bug corrected if no textarea displayed.
git-svn-id: http://piwigo.org/svn/trunk@10312 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
95604ad8c1
commit
d6e4e569c0
1 changed files with 6 additions and 5 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue