Kunena 7.0.9 & Kunena 6.4.14 – Security Updates Released
The Kunena team has announce the arrival of Kunena 7.0.9 [K 7.0.9] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
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: 12291
- Thank you received: 2538
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: 12291
- Thank you received: 2538
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.