2017-10-23 19 views
0

DolibarrはPHPとMySQLで書かれた素晴らしいERPシステムです。cbeditorツールバーの設定を変更してもdolibarr ERPには影響ありません

CKeditorをテキストエディタとして使用します。 ツールバーにいくつかのオプションを追加します。

商品カードのページで使用されるhtdocs\theme\eldy\ckeditor\config.js(以下同様)にはdolibarr_detailsが定義されています。しかし、新しいオプションを追加すると、ショーエディタツールバーには何の影響もありません。

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

なぜこの効果がないのですか?

誰でも知っているなら、私を助けてください。

+0

私はDolibarrの経験の仕事を持っているPHPの開発者が –

+0

を助けることができると思いましたタグは、問題/質問に直接関係する技術に関するものです。問題と質問はPHPとは関係がないので、そのタグを追加しないでください。 –

+0

CKEditorの観点からは、 'config.toolbar_dolibarr_details = [...'を使用している場合に限り、 'config.toolbar = 'dolibarr_details';'も使用する必要があります。 https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-toolbarを参照してください。 –

答えて

0

私がインストール

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

は、請求書、propsals、受注の製品ラインにのみCKEditorバージョンのために関連している私のdolibarrに見るように...

+0

この場合、製品カードに表示されているエディタでどのように変更できますか(ツールバーのいくつかのボタンを追加または削除できますか? –

+0

このディレクトリのdoleditor.class.phpの191行目を確認してください。htdocs \ core \ class \ doleditor.class.php – bouguima

関連する問題