Index: trunk/plugins/LocalFilesEditor/admin.tpl =================================================================== --- trunk/plugins/LocalFilesEditor/admin.tpl (revision 8225) +++ trunk/plugins/LocalFilesEditor/admin.tpl (revision 9173) @@ -1,7 +1,5 @@ -{html_head}{/html_head} -{known_script id="editarea" src=$LOCALEDIT_PATH|@cat:"editarea/edit_area_full.js"} -{/html_head} +{combine_css path="plugins/LocalFilesEditor/locfiledit.css"} +{footer_script} function loadEditarea() {ldelim} editAreaLoader.init({ldelim} @@ -22,5 +20,10 @@ jQuery.post("plugins/LocalFilesEditor/update_config.php", {ldelim} editarea: "off"}); } - + +jQuery("#editarea_buttons").show(); +{if $LOAD_EDITAREA == 'on'} +if (document.getElementById("text") != null) loadEditarea(); +{/if} +{/footer_script}