diff options
| author | spider <spider@bitweaver.org> | 2015-02-11 14:06:47 -0500 |
|---|---|---|
| committer | spider <spider@bitweaver.org> | 2015-02-11 14:06:47 -0500 |
| commit | 03ad31d9ee3e43c7903e9aeef4105b149ad7077f (patch) | |
| tree | a135f4811552207fbddf42245eae4dd195c89fcb | |
| parent | 1ccc5d9b0c53cba895f2dc11d6115bdd416e8e92 (diff) | |
| download | ckeditor-03ad31d9ee3e43c7903e9aeef4105b149ad7077f.tar.gz ckeditor-03ad31d9ee3e43c7903e9aeef4105b149ad7077f.tar.bz2 ckeditor-03ad31d9ee3e43c7903e9aeef4105b149ad7077f.zip | |
move CKEDITOR.config.toolbarGroups to function
| -rw-r--r-- | templates/footer_inc.tpl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/footer_inc.tpl b/templates/footer_inc.tpl index 47f785e..145ea51 100644 --- a/templates/footer_inc.tpl +++ b/templates/footer_inc.tpl @@ -3,6 +3,7 @@ <script type="text/javascript"> {literal} function createCkEditor( pTextAreaId ) { + configCkEditor(); if( !CKEDITOR.instances[pTextAreaId] ){ $('#'+pTextAreaId).attr("contenteditable", true); //var config = {}; @@ -26,7 +27,7 @@ function destroyCkEditor( pTextAreaId ) { } } -$(document).ready(function() { +function configCkEditor() { CKEDITOR.config.toolbarGroups = [ {/literal}{if $gBitSystem->getConfig('ckedit_toolbars') eq 'Full'}{literal} { name: 'document', groups: [ 'mode', 'document', 'doctools' ] }, @@ -80,7 +81,7 @@ $(document).ready(function() { { name: 'links' } {/literal}{/if}{literal} ]; -}); +} {/literal} </script> {/if} |
