2016-06-08 100 views

回答

0

一種優雅的方式可以是由第一creating a CKEditor plugin,然後loading the plugin into the IvoryCKEditorBundle

# app/config/config.yml 
ivory_ck_editor: 
    default_config: my_config 
    configs: 
     my_config: 
      extraPlugins: "mycustomplugin" 
    plugins: 
     mycustomplugin: 
      path:  "/bundles/mybundle/mycustomplugin/" 
      filename: "plugin.js" 

插件文件夾(在我的例子mycustomplugin)應束源(例如src/MyBundleName/Resources/pubic)的Resources/public文件夾下被放置。

編輯:此外,要知道,如果你需要安裝多個插件,該extraPlugins列表應該用逗號沒有空間隔開,如:

extraPlugins: "mycustomplugin1,mycustomplugin2,mycustomplugin3"