diff options
| author | lsces <lester@lsces.co.uk> | 2014-06-07 07:58:40 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2014-06-07 07:58:40 +0100 |
| commit | 83f42fce89253e783f04ade94c842e9836ca122d (patch) | |
| tree | a4db83e980d7b5fd9d07d61fb11e15cf86990d09 /templates | |
| parent | 6a7c5b2653fc4883efd209db8874e9e180111a36 (diff) | |
| download | ckeditor-83f42fce89253e783f04ade94c842e9836ca122d.tar.gz ckeditor-83f42fce89253e783f04ade94c842e9836ca122d.tar.bz2 ckeditor-83f42fce89253e783f04ade94c842e9836ca122d.zip | |
First pass adding ckeditor configuration in footer scripts
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/footer_inc.tpl | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/templates/footer_inc.tpl b/templates/footer_inc.tpl new file mode 100644 index 0000000..0386bed --- /dev/null +++ b/templates/footer_inc.tpl @@ -0,0 +1,66 @@ +{strip} +{if $wysiwygEdit = 'true'} + <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} +{/strip} |
