Changeset 10312 for trunk


Ignore:
Timestamp:
Apr 12, 2011, 1:44:49 PM (14 years ago)
Author:
patdenice
Message:

Bug corrected if no textarea displayed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/LocalFilesEditor/admin.tpl

    r10309 r10312  
    1515
    1616{footer_script}
    17 var editor = CodeMirror.fromTextArea(document.getElementById("text"), {ldelim}
    18   matchBrackets: true,
    19   mode: "{$CODEMIRROR_MODE}",
    20   tabMode: "shift"
    21 });
     17if (document.getElementById("text") != null)
     18  var editor = CodeMirror.fromTextArea(document.getElementById("text"), {ldelim}
     19    matchBrackets: true,
     20    mode: "{$CODEMIRROR_MODE}",
     21    tabMode: "shift"
     22  });
    2223{/footer_script}
    2324
Note: See TracChangeset for help on using the changeset viewer.