0

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.

Ahmad Badpey
  • 6,348
  • 16
  • 93
  • 159
  • I thought php developers that have experience work with Dolibarr can help – Ahmad Badpey Oct 23 '17 at 06:02
  • The tags are about the technologies directly relevant to the issue/question. Since the issue and the question doesn't have anything to do with PHP, you shouldn't add that tag. – M. Eriksson Oct 23 '17 at 06:08
  • From CKEditor point of view I can only say if you are using `config.toolbar_dolibarr_details = [...` you should also use `config.toolbar = 'dolibarr_details';`. Please see: https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-toolbar. – j.swiderski Oct 23 '17 at 12:17

1 Answers1

0

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

bouguima
  • 158
  • 15