aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor/show_default.tpl
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2008-03-25 23:30:23 +0000
committerpatdenice <patdenice@piwigo.org>2008-03-25 23:30:23 +0000
commit6aa72e141a0b651f35e6d4dc08777d715aed2e71 (patch)
tree87d7ac32a669d0708a7ed8108d939474df3df5e2 /plugins/LocalFilesEditor/show_default.tpl
parentee70a108bea04c718b7a6edb97aec56f2dae2679 (diff)
Add editarea to LocalFiles Editor.
git-svn-id: http://piwigo.org/svn/trunk@2291 68402e56-0260-453c-a942-63ccdbb3a9ee
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