2015-02-23 88 views
0

我在編輯器中添加了CKEdiotr LineHeight插件。CKeditor上的LineHeight插件問題

它工作正常,當我沒有從配置文件設置任何工具欄配置,但wheni啓用我的工具欄設置其隱藏。

我的工具欄設置是爲遵循「行高」配置設置

config.extraPlugins = 'lineheight'; 
config.line_height = "10px;12px;13px;14px;15px;16px;"; 

config.toolbar = [ 
    { name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Bold', 'Italic', 'Underline', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] }, 
    { name: 'styles', items: ['Font', 'FontSize', 'TextColor', 'BGColor'] }]; 

請讓我知道我在哪裏丟失。 我想我錯過添加項目名稱在config.toolbar項目列表

回答

1

我希望你已經解決了現在。對於有此問題的用戶,您需要在商品列表中添加lineheight

實施例:

{ 
    name: 'styles', 
    items: ['Font', 'lineheight', 'FontSize', 'TextColor', 'BGColor'] 
};