2016-01-20 12 views
2

enter image description hereenter image description here我有同樣的下載額外的插件和過去的插件到plugins文件夾。 ckeditor /插件/ lineheight和ckeditor /插件/語言。在config.js 與啓動。但是,行高和語言選項不會顯示在ckeditor中。行高度選項CKEditor的不表明即使添加插件

config.extraPlugins = 'lineheight'; 
config.extraPlugins = 'language'; 
CKEDITOR.editorConfig = function(config) 
{ 
    // Define changes to default configuration here. For example: 
    // config.language = 'fr'; 
    // config.uiColor = '#AADC6E'; 
}; 
+0

在config.removeButtons提及可能被緩存的問題。 CKEditor的是壞的緩存.. –

+0

清除瀏覽器數據,並檢查所有的瀏覽器。但是爲了不顯示行高選項。我想這http://ckeditor.com/addon/lineheight – arulraj

回答

2

做一個雙重分配

config.extraPlugins = 'lineheight'; 
config.extraPlugins = 'language'; 

你基本上覆蓋config.extraPlugins屬性,所以它等於'language'。做到這一點,而不是:

config.extraPlugins = 'lineheight,language'; 
-1
config.extraPlugins = 'lineheight,language'; 
config.line_height="1px;1.1px;1.2px;1.3px;1.4px;1.5px"; 

Toolbar : 
    { 
    name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize','lineheight' ] 
    }, 
+0

請格式化你的代碼! – Thamaraiselvam

0

確保

線高不\ CKEditor的\ config.js

config.removeButtons ="lineheight"