Copy and paste is disabled after adding the wordcount Ckeditor plugin

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.

+4
source share
2 answers

I had the same problem. It seems that the Notification plugin does not work with CKEditor versions below 4.5. Therefore, you need to update CKEditor. You can re-create the CKEditor package on the website and add to your previous new plugins that you need now - wordcount and notification.

+2
source

Exclusively, convert it `

 CKEDITOR.config.extraPlugins = 'toolbar'; CKEDITOR.config.extraPlugins = 'htmlwriter'; CKEDITOR.config.extraPlugins = 'notification'; CKEDITOR.config.extraPlugins = 'wordcount'; 

for this

 CKEDITOR.config.extraPlugins = 'toolbar,htmlwriter,notification,wordcount'; 

because you are overwriting the value of the variable CKEDITOR.config.extraPlugins

0
source

All Articles