Kunena 6.0.9.1 Released

The Kunena team has announce the arrival of Kunena 6.0.9.1 [K 6.0.9.1] which is now available for download as a native Joomla extension for J! 4.2.x. This version addresses most of the issues that were discovered in K 6.0 and issues discovered during the development stages of K 6.0.

Question preserving ckeditor_config.js changes on upgrade

More
2 years 2 months ago - 1 year 9 months ago #1 by ruud
Hi,
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
Last edit: 1 year 9 months ago by ruud.
The following user(s) said Thank You: xillibit

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #2 by rich
Hello ruud, we know the problem that's not possible to create an own override for this file. Therefore, you can now disable all unneeded symbols in the template configuration. As far as I know you use the skin "moono-lisa". If you enter the name of your skin in the template setting (tab BBCodes the last option) it remain after an update.
Can you tell me please, which additional changes you've provided, so that all symbols in one row?

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #3 by ruud
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');

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
The following user(s) said Thank You: rich, Charles

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago - 2 years 2 months ago #4 by rich
Yes, it looks better so. Many thanks!
Last edit: 2 years 2 months ago by rich.

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #5 by xillibit

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');

 

Hello,

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.

Time to create page: 0.359 seconds