diff options
| author | lsces <lester@lsces.co.uk> | 2013-07-15 14:06:05 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2013-07-15 14:06:05 +0100 |
| commit | 42c8c6fddb7169f0164a8bb6adc8b176a895d298 (patch) | |
| tree | 0e99fc8e79c991124f5eab2cfe814bb0e5956517 /templates/edit_textarea.tpl | |
| parent | fdf52c88112745f5332335d27b68c35559c79595 (diff) | |
| download | liberty-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.tpl | 13 |
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> |
