0

如您所知,Dolibarr 是一个用 PHP 和 MySQL 编写的优秀 ERP 系统。

它使用 CKeditor 作为文本编辑器。现在我想在它的工具栏上添加一些选项。

在产品卡页面中使用了一个dolibarr_details定义(如下所示)。htdocs\theme\eldy\ckeditor\config.js但是当我添加新选项时,它对显示编辑器工具栏没有任何影响。

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

我不知道为什么这没有效果?

如果有人知道这一点,请帮助我。

4

1 回答 1

0

正如我在 dolibarr 安装中看到的那样

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

仅与发票、提案、订单中的产品线中的 ckeditor 相关。

于 2017-10-25T10:19:09.947 回答