diff options
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> |
