I use the wordcount plugin ckeditor to count words. In addition to this plugin, I added a notification plugin. My problem is the following after adding the copy and paste notification plugin by pressing a key . I get the following error in my console: NOTE. Word metrics display correctly.
Uncaught TypeError: CKEDITOR.tools.getUniqueId is not a Notification Function @ plugin.js? T = E4KA: 121 (anonymous function) @ plugin.js? t = E4KA: 360 i @ ckeditor.js: 10 CKEDITOR.event.CKEDITOR.event.fire @ ckeditor.js: 12 CKEDITOR.editor.CKEDITOR.editor.fire @ ckeditor.js: 13 f @ ckeditor.js: 594 ( anonymous function) @ ckeditor.js: 599 (anonymous function) @ ckeditor.js: 598
My code is as follows to add a word count and another plugin:
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 };
Is there something I'm doing wrong here? Please help me. Any help would be greatly appreciated.
source share