0

M 使用 ckeditor,我想添加字数统计和拼写检查功能,任何人都可以帮助我,我已经下载了字数统计插件以下是我的代码

CKEDITOR.editorConfig = function (config) {
// Define changes to default configuration here. For example:
// config.language = 'fr';`
// config.uiColor = '#AADC6E';
config.extraPlugins = 'onchange, wordcount';
config.minimumChangeMilliseconds = 100;
config.htmlEncodeOutput = false;
config.toolbar_Custom = [
                                    { name: 'styles', items: ['Styles', 'Format'] },
                                    { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', '-', 'RemoveFormat'] },
                                    { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Blockquote'] },
                                    { name: 'links', items: ['Link', 'Unlink', 'Anchor'] },

                        ];
config.toolbar_Full.push(['CountSelection']);

};

4

1 回答 1

1

wordcount尝试添加此行并从中删除config.extraPlugins

config.plugins = 'wordcount';

还要将此行添加到您的config.toolbar_Custom数组中:

{ name: 'editing', items: [ 'SpellChecker' ] },

希望这可以帮助

于 2013-09-02T14:31:11.397 回答