summaryrefslogtreecommitdiff
path: root/templates/edit_textarea.tpl
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2013-07-15 14:06:05 +0100
committerlsces <lester@lsces.co.uk>2013-07-15 14:06:05 +0100
commit42c8c6fddb7169f0164a8bb6adc8b176a895d298 (patch)
tree0e99fc8e79c991124f5eab2cfe814bb0e5956517 /templates/edit_textarea.tpl
parentfdf52c88112745f5332335d27b68c35559c79595 (diff)
downloadliberty-42c8c6fddb7169f0164a8bb6adc8b176a895d298.tar.gz
liberty-42c8c6fddb7169f0164a8bb6adc8b176a895d298.tar.bz2
liberty-42c8c6fddb7169f0164a8bb6adc8b176a895d298.zip
Work in progress!
But ckeditor does not work at all at present, so this is a step in the right direction and switching to ckeditor version 4 at same time.
Diffstat (limited to 'templates/edit_textarea.tpl')
-rw-r--r--templates/edit_textarea.tpl13
1 files changed, 9 insertions, 4 deletions
diff --git a/templates/edit_textarea.tpl b/templates/edit_textarea.tpl
index 4da4b66..798a453 100644
--- a/templates/edit_textarea.tpl
+++ b/templates/edit_textarea.tpl
@@ -34,10 +34,15 @@
{/if}
{formhelp note=$textarea_help}
- {if $gBitSystem->isPackageActive('ckeditor') &&
- ($gBitSystem->isFeatureActive("ckeditor_ask") ||
- $gBitSystem->isFeatureActive("ckeditor_on_click"))}
- {formhelp note="Click in the textarea to activate the editor."}
+ {if $gBitSystem->isPackageActive('ckeditor')}
+ <script>
+ CKEDITOR.replace( '{$smarty.const.LIBERTY_TEXT_AREA}' );
+ </script>
+
+ {if ($gBitSystem->isFeatureActive("ckeditor_ask") ||
+ $gBitSystem->isFeatureActive("ckeditor_on_click"))}
+ {formhelp note="Click in the textarea to activate the editor."}
+ {/if}
{/if}
{/forminput}
</div>