×
Blue Eagle 5 v1.6.2 has been Released for Kunena 5.2 (20 Jan 2021)

The Kunena team has announce the arrival of Kunena template Blue Eagle 5 v1.6.2 which is now available for download. This version addresses most of the issues that were discovered in development.

REQUIREMENTS
Blue Eagle 1.6.x requires Kunena 5.2.x to work with

Question preserving ckeditor_config.js changes on upgrade

More
1 month 1 week 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:
The following user(s) said Thank You: xillibit

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

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

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

More
1 month 1 week 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.263 seconds