Kunena 7.0.11 & Kunena 6.4.16 – Security Updates Released and K7.1 in RC1 2
The Kunena team has announce the arrival of three simultaneous security release : K6.4.16, K7.0.11 and K7.1 RC2. Just a reminder K6.4.16 receives only securities fixes untill end of 2026, so it's advised for users to upgrade to K7.0.11. K7.0.11 is the last release of the K7.0 because it's replaced by K7.1 branch with the stable release in the corner. The translations for K7.1 on crowdin.com/project/kunena-forum-7-1 needs to be checked or improved becasue it has been generated by TM (Translation Machine).
Question preserving ckeditor_config.js changes on upgrade
I was reluctant to upgrade Kunena due to the new ckeditor, but with yesterdays release 5.2.2 I strongly feel that this feature is now stable enough to give it a go on production sites.
Compliments for the devs working on the ck-editor implementation! Good job!
I have made some small changes to the ckeditor_config.js: basically removes the dividers in the button bar to preserve (a lot of) space for the editor: I now have one line of buttons instead of three partly used ones).
Question now is: is there a way to make my changes 'survive' a kunena upgrade, or is the ckeditor_config.js overwritten on update?
sharing = caring
Please Log in or Create an account to join the conversation.
- Posts: 12298
- Thank you received: 2544
Can you tell me please, which additional changes you've provided, so that all symbols in one row?
Important! Always create a backup before you make any changes to your website!
Please Log in or Create an account to join the conversation.
I think with a small change it is possible to preserve the setting / use a different settings file.
In the template configuration, create a parameter e.g. editorConfigPrefix of type text.
then in file ./components/com_kunena/template/crypsis/layouts/widget/editor/ckeditor.php
you change the loading of the ckeditor_config.js to something like this:
The changes I made to the ckeditor_config.js are the removal of the dividers:
old:
config.toolbarGroups = [
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
{ name: 'forms', groups: [ 'forms' ] },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
{ name: 'links', groups: [ 'links' ] },
{ name: 'insert', groups: [ 'insert' ] },
{ name: 'social', groups: [ 'social' ] },
'/',
{ name: 'styles', groups: [ 'styles' ] },
{ name: 'colors', groups: [ 'colors' ] },
{ name: 'tools', groups: [ 'tools' ] },
{ name: 'others', groups: [ 'others' ] },
{ name: 'about', groups: [ 'about' ] }
];
new:
config.toolbarGroups = [
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
{ name: 'forms', groups: [ 'forms' ] },
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
{ name: 'links', groups: [ 'links' ] },
{ name: 'insert', groups: [ 'insert' ] },
{ name: 'social', groups: [ 'social' ] },
{ name: 'styles', groups: [ 'styles' ] },
{ name: 'colors', groups: [ 'colors' ] },
{ name: 'tools', groups: [ 'tools' ] },
{ name: 'others', groups: [ 'others' ] },
{ name: 'about', groups: [ 'about' ] }
];
Hope this helps
sharing = caring
Please Log in or Create an account to join the conversation.
- Posts: 12298
- Thank you received: 2544
Important! Always create a backup before you make any changes to your website!
Please Log in or Create an account to join the conversation.
Hello,ruud wrote: Hi Rich,
I think with a small change it is possible to preserve the setting / use a different settings file.
In the template configuration, create a parameter e.g. editorConfigPrefix of type text.
then in file ./components/com_kunena/template/crypsis/layouts/widget/editor/ckeditor.php
you change the loading of the ckeditor_config.js to something like this:
Code:$this->addScriptOptions('com_kunena.ckeditor_config', $editorConfigprefix . 'ckeditor_config.js');
Thanks for this tip, it's easy and it's seems good. I will apply that to the 5.2.3 developpement version
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.