aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor/show_default.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/LocalFilesEditor/show_default.tpl')
-rw-r--r--plugins/LocalFilesEditor/show_default.tpl16
1 files changed, 13 insertions, 3 deletions
diff --git a/plugins/LocalFilesEditor/show_default.tpl b/plugins/LocalFilesEditor/show_default.tpl
index c101e351a..bccfc9712 100644
--- a/plugins/LocalFilesEditor/show_default.tpl
+++ b/plugins/LocalFilesEditor/show_default.tpl
@@ -1,3 +1,13 @@
-<div id="content" style="font-family:courier;text-align:left;padding:5px;">
-{$DEFAULT_CONTENT}
-</div> <!-- content --> \ No newline at end of file
+{if isset($editarea)}
+<script type="text/javascript" src="{$editarea.URL}"></script>
+<script type="text/javascript">
+editAreaLoader.init({ldelim}
+ id: "text"
+ {foreach from=$editarea.OPTIONS key=option item=value}
+ , {$option}: {$value|editarea_quote}
+ {/foreach}
+{rdelim});
+</script>
+{/if}
+
+<textarea rows="30" id="text" cols="90">{$DEFAULT_CONTENT}</textarea> \ No newline at end of file