×
Kunena 5.2.8 released and Blue eagle 1.6.7 released (02 Jan 2022)

The Kunena team has announce the arrival of Kunena 5.2.8 [K 5.2.8] which is now available for download as a native Joomla extension for J! 3.10/3.9.x. This version addresses most of the issues that were discovered in K 5.2 and issues discovered during the development stages of previous version of K5.2.

If you are using blue template you need to update to 1.6.7 version to ensure to have a compatible version with K5.2.8.

Important note: (07 Jan 2022) If you have created a Kunena custom.css, create a backup of it. Due to an error, this file will be deleted during an upgrade.

Question preserving ckeditor_config.js changes on upgrade

More
1 year 4 months ago - 11 months 2 weeks 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
Attachments:
Last edit: 11 months 2 weeks ago by ruud.
The following user(s) said Thank You: xillibit

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

More
1 year 4 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
1 year 4 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:
$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
1 year 4 months ago - 1 year 4 months ago #4 by rich
Yes, it looks better so. Many thanks!
Last edit: 1 year 4 months ago by rich.

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

More
1 year 4 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:

$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.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.083 seconds