diff options
| author | lsces <lester@lsces.co.uk> | 2013-09-23 20:52:29 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2013-09-23 20:52:29 +0100 |
| commit | e3d8bf18a73a306d46d947bbb8788231cf566a37 (patch) | |
| tree | 3e7b79b285a7a6dcbfb72522b395fefd50c19c53 /templates | |
| parent | 4ecd7fd650cc45f7ff798b2e5a1e032b038236f1 (diff) | |
| download | liberty-e3d8bf18a73a306d46d947bbb8788231cf566a37.tar.gz liberty-e3d8bf18a73a306d46d947bbb8788231cf566a37.tar.bz2 liberty-e3d8bf18a73a306d46d947bbb8788231cf566a37.zip | |
move ckeditor config to extra file
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/edit_textarea.tpl | 70 |
1 files changed, 3 insertions, 67 deletions
diff --git a/templates/edit_textarea.tpl b/templates/edit_textarea.tpl index 986b2ab..809e9ca 100644 --- a/templates/edit_textarea.tpl +++ b/templates/edit_textarea.tpl @@ -34,72 +34,8 @@ {/if} {formhelp note=$textarea_help} - {if $gBitSystem->isPackageActive('ckeditor')} - <script> - CKEDITOR.replace( '{$smarty.const.LIBERTY_TEXT_AREA}', { - toolbarGroups: [ - {if $gBitSystem->getConfig('ckedit_toolbars') eq 'Full'} - { name: 'document', groups: [ 'mode', 'document', 'doctools' ] }, - { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, - { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] }, - { name: 'forms' }, - '/', - { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, - { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ] }, - '/', - { name: 'links' }, - { name: 'insert' }, - '/', - { name: 'styles' }, - { name: 'colors' }, - { name: 'tools' }, - { name: 'others' }, - { name: 'about' } - {elseif $gBitSystem->getConfig('ckedit_toolbars') eq 'Advanced'} - { name: 'document', groups: [ 'mode', 'document', 'doctools' ] }, - { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, - { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] }, - { name: 'forms' }, - '/', - { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, - { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ] }, - '/', - { name: 'links' }, - { name: 'insert' }, - '/', - { name: 'styles' }, - { name: 'colors' }, - { name: 'tools' }, - { name: 'others' }, - { name: 'about' } - {elseif $gBitSystem->getConfig('ckedit_toolbars') eq 'Intermediate'} - { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, - { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] }, - { name: 'forms' }, - '/', - { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, - '/', - { name: 'links' }, - { name: 'insert' }, - '/', - { name: 'styles' }, - { name: 'colors' }, - { name: 'tools' }, - { name: 'others' }, - { name: 'about' } - {else} - { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, - { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, - { name: 'links' } - {/if} - ] - }); - </script> - - {* if ($gBitSystem->isFeatureActive("ckeditor_ask") || - $gBitSystem->isFeatureActive("ckeditor_on_click"))} - {formhelp note="Click in the textarea to activate the editor."} - {/if *} - {/if} {/forminput} + {if $gBitSystem->isPackageActive('ckeditor')} + {assign var=wysiwygEdit value=true} + {/if} </div> |
