summaryrefslogtreecommitdiff
path: root/templates/footer_inc.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/footer_inc.tpl')
-rwxr-xr-xtemplates/footer_inc.tpl5
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}