diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-16 14:08:36 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-16 14:08:36 +0100 |
| commit | 17cb4e47dfec18793a0848c66e9c9602e1a96394 (patch) | |
| tree | be9f0e04773ea69c1eb96e5a38f78eaf6eac7563 /templates | |
| parent | aac01aa419299f447a067873d7483bddc116821d (diff) | |
| download | ckeditor-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-x | templates/footer_inc.tpl | 1 |
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' ] }, |
