2017-05-25 65 views
0

目前,我們正在限於這些 樣式,粗體,斜體,鏈接,取消鏈接,錨,表,BulletedList中,大段引用,罷工,標,上標如何在工具欄中添加更多的東西

有什麼辦法添加更多的東西在這裏如:顏色和ABC ,使我們可以根據我們在CSS的要求

感謝

回答

0

是改變ABC的屬性,你可以做到這一點。請參閱官方HOWTO:configuring CKEditor in Apostrophe.這還包括如何配置撇號的HTML清理過濾器以允許您想要的內容。

0

allowedTags:['h3','h4','h5','h6','blockquote','p','a','ul','ol','span', 'nl ','li','b','i','strong','em','strike','code','hr','br','div', 'table','thead' '''','','','','','','','','','','''','''','''''''''''''''''' ','','','','','','','','','','''','''','''','''','''''''','012'''工具欄然後我只看到粗體,斜體但沒有跨度

-1

我試圖添加證明插件,以便能夠對齊文本右,左或中心。但是,在遵循文檔中的指令之後,我想知道該插件是否應該位於特定文件夾中(我的位置是public/modules /撇號/ areas/js/ckeditorPlugins/justify /),還應該如何在工具欄中調用該插件。

這是我的代碼,以防萬一:(位於lib/modules目錄/撇號區/公/ JS/user.js的)

apos.define('apostrophe-areas', { 
    construct: function(self, options) { 
    // Use the super pattern - don't forget to call the original method 
    var superEnableCkeditor = self.enableCkeditor; 
    self.enableCkeditor = function() { 
     superEnableCkeditor(); 
     // Now do as we please 
     CKEDITOR.plugins.addExternal('justify', '/modules/apostrophe-areas/js/ckeditorPlugins/justify/', 'plugin.js'); 
    }; 
    } 
});