diff --git a/plugins/LocalFilesEditor/admin.tpl b/plugins/LocalFilesEditor/admin.tpl index d3e351db4..72880dd05 100644 --- a/plugins/LocalFilesEditor/admin.tpl +++ b/plugins/LocalFilesEditor/admin.tpl @@ -1,8 +1,6 @@ -{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} id: "text" @@ -21,7 +19,12 @@ function unloadEditarea() {ldelim} jQuery("#showedit").show(); 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}