diff options
Diffstat (limited to 'templates/footer_inc.tpl')
| -rwxr-xr-x | templates/footer_inc.tpl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/footer_inc.tpl b/templates/footer_inc.tpl index 9a801d6..f6e3330 100755 --- a/templates/footer_inc.tpl +++ b/templates/footer_inc.tpl @@ -1,8 +1,10 @@ {strip} -{if $gBitUser->isRegistered() } +{if $gBitSystem->isPackageActive('ckeditor')} <script nonce="{$cspNonce}"> + if( document.getElementById( '{$smarty.const.LIBERTY_TEXT_AREA}' ) ) {ldelim} CKEDITOR.replace( '{$smarty.const.LIBERTY_TEXT_AREA}', { extraAllowedContent: 'pre(bwcode)[data-bwcode-params]', + disableNativeSpellChecker: false, toolbarGroups: [ {if $gBitSystem->getConfig('ckedit_toolbars') eq 'Full'} { name: 'document', groups: [ 'mode', 'document', 'doctools' ] }, @@ -53,6 +55,7 @@ {/if} ], }); + {rdelim} </script> {/if} {/strip} |
