【发布时间】:2015-10-29 02:45:29
【问题描述】:
我正在使用 ckeditor 的 wordcount 插件进行字数统计。作为这个插件的要求,我添加了插件'notification'。我的问题是添加通知插件后通过按键复制和粘贴被禁用。我在控制台中收到以下错误: 注意:字数显示正确。
未捕获的类型错误:CKEDITOR.tools.getUniqueId 不是函数 通知@plugin.js?t=E4KA:121(匿名函数)@ plugin.js?t=E4KA:360 我@ckeditor.js:10 CKEDITOR.event.CKEDITOR.event.fire@ckeditor.js:12 CKEDITOR.editor.CKEDITOR.editor.fire @ ckeditor.js:13 f @ ckeditor.js:594(匿名函数)@ckeditor.js:599(匿名 函数)@ckeditor.js:598
我的代码如下添加字数和其他插件:
CKEDITOR.config.extraPlugins = 'toolbar';
CKEDITOR.config.extraPlugins = 'htmlwriter';
CKEDITOR.config.extraPlugins = 'notification';
CKEDITOR.config.extraPlugins = 'wordcount';
CKEDITOR.config.wordcount = {
showParagraphs: true,
showWordCount: true,
countSpacesAsChars: false,
countHTML: false,
maxWordCount: 10
};
我在这里做错了什么吗? 请帮帮我。任何帮助将不胜感激。
【问题讨论】:
标签: notifications ckeditor word-count