changing ckeditor toolbar config does not affect in dolibarr ERP

329 Views Asked by At

As you know Dolibarr is a great ERP system written in PHP and MySQL.

It uses CKeditor as text editor. Now I want add some options to it's toolbar.

There is a dolibarr_details defined in htdocs\theme\eldy\ckeditor\config.js (like Below) that used in Products card page. But when I add new options to that has not any affect on show editor toolbar.

config.toolbar_dolibarr_details =
    [
        ['Source','Maximize'],
        ['SpellChecker', 'Scayt'],      // 'Cut','Copy','Paste','-', are useless, can be done with right click, even on smarpthone
        ['Format','Font','FontSize'],
        ['Bold','Italic','Underline','Strike','-','TextColor','RemoveFormat'],  // ,'Subscript','Superscript' useless
        ['NumberedList','BulletedList','Outdent','Indent'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
        ['Link','Unlink','SpecialChar']
    ];

I do not know why this has no effect?

If anyone knows this, please help me.

1

There are 1 best solutions below

2
On

as i see in my dolibarr install

config.toolbar_dolibarr_details =
    [
        ['Source','Maximize'],
        ['Cut','Copy','Paste','-','SpellChecker', 'Scayt'],
        ['Format','Font','FontSize'],
        ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
        ['NumberedList','BulletedList','Outdent','Indent'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
        ['Link','Unlink','SpecialChar']
    ];

is related only for ckeditor in product lines in invoices,propsals,orders ..