0
我以前喜歡在CKEditor的「單詞計數」的新定製插件象下面這樣使用config.js使用網頁的方法定義的CKEditor自定義插件,插件的時候有更多的CONFIGS本身
config.js:
config.extraPlugins = 'wordcount';
config.wordcount = {
wordlimit: '5',
charlimit: '50'
};
如您所見,插件本身有兩個額外的配置參數:'wordlimit'和'charlimit'。
它的工作原理propely在config.js但由於某些原因,我需要在頁面定義的CKEditor配置,如下圖所示:
CKEDITOR.replace('editor1', {
extraPlugins:'wordcount'
});
但我不知道如何定義「wordcount的具體CONFIGS ' 插入?我試圖像下面,但他們都失敗了
CKEDITOR.replace('editor1', {
extraPlugins:'wordcount',
wordlimit: '5',
charlimit: '50'
});
OR
CKEDITOR.replace('editor1', {
extraPlugins:'wordcount',
wordcount.wordlimit: '5',
wordcount.charlimit: '50'
});
感謝。
它的工作原理!謝謝。 – Amir 2014-10-18 06:16:28