summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-20 14:48:06 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-20 14:49:18 +0100
commita2a8228e434ee8d59523ba90bbdc050b9d3d4529 (patch)
tree1084a9586b257b7d4ca2f02bab6fc5bc4c1a243e /templates
parenta23699821ab98fd9a47791434d0db48b2f3e9c16 (diff)
downloadckeditor-a2a8228e434ee8d59523ba90bbdc050b9d3d4529.tar.gz
ckeditor-a2a8228e434ee8d59523ba90bbdc050b9d3d4529.tar.bz2
ckeditor-a2a8228e434ee8d59523ba90bbdc050b9d3d4529.zip
Working state: footer_inc.tpl fix, extra skins
- footer_inc.tpl: guard CKEDITOR.replace() with getElementById check to prevent editor-incorrect-element error on pages without the edit area; switch condition to isPackageActive('ckeditor'); add disableNativeSpellChecker - Add moonocolor, moonocolor16, n1theme skins Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates')
-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}