Changeset 10313


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

merge r10312 from trunk to branch 2.2
Bug corrected if no textarea displayed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/plugins/LocalFilesEditor/admin.tpl

    r10311 r10313  
    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.