summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-16 14:08:36 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-16 14:08:36 +0100
commit17cb4e47dfec18793a0848c66e9c9602e1a96394 (patch)
treebe9f0e04773ea69c1eb96e5a38f78eaf6eac7563 /templates
parentaac01aa419299f447a067873d7483bddc116821d (diff)
downloadckeditor-17cb4e47dfec18793a0848c66e9c9602e1a96394.tar.gz
ckeditor-17cb4e47dfec18793a0848c66e9c9602e1a96394.tar.bz2
ckeditor-17cb4e47dfec18793a0848c66e9c9602e1a96394.zip
Add filter to display {code} block is ckeditor
Caution, the {code} element is replaced by <pre class="bwcode"></pre>' wrapper in souce view
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/footer_inc.tpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/footer_inc.tpl b/templates/footer_inc.tpl
index feb79bd..9a801d6 100755
--- a/templates/footer_inc.tpl
+++ b/templates/footer_inc.tpl
@@ -2,6 +2,7 @@
{if $gBitUser->isRegistered() }
<script nonce="{$cspNonce}">
CKEDITOR.replace( '{$smarty.const.LIBERTY_TEXT_AREA}', {
+ extraAllowedContent: 'pre(bwcode)[data-bwcode-params]',
toolbarGroups: [
{if $gBitSystem->getConfig('ckedit_toolbars') eq 'Full'}
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },