Comments (7)
Yes you need to set the the same timeout 100 as the plugin does.
CKEDITOR.instances.editor1.on('afterPaste', function (event) { console.log(event.editor.wordCount.charCount) }, null,null,100);
this should work
from ckeditor-wordcount-plugin.
If I am getting this right there should be en event that we can bind without using timeouts. Timeouts can bring all lot of problems.
So the question is whats the problem ? Is this a bug in CKEditor or in Wordcount?
from ckeditor-wordcount-plugin.
I thinks this is a misunderstand. The Value 100 is not a timeout event. its the execution priority...
The listener priority. Lower priority listeners are called first. Listeners with the same priority value are called in registration order.
from ckeditor-wordcount-plugin.
If the value 100 is a problem for you i could remove it.
from ckeditor-wordcount-plugin.
Oh ok now I get it. But still I would expect that afterPaste should catch the right result from wordcount.
So I would say somehow there is a bug in CKEditor. Why would you need the priority if it would function correctly?
from ckeditor-wordcount-plugin.
Why is this a bug i dont unterstand. The default value is 10. i set it to 100 to make sure that the events of the editor are executed before the content is filtered. Otherwise its possible that the counting is wrong
from ckeditor-wordcount-plugin.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from ckeditor-wordcount-plugin.
Related Issues (20)
- Character limit in Source Mode not functioning HOT 2
- You can go over the limit if you type too fast HOT 2
- Alternative CKEditor word count HOT 1
- Doesn't count characters of type math ( plugin "ckeditor_wiris") HOT 1
- Can't get it work HOT 15
- How to integrate wordcount plugin with ckeditor4-react? HOT 9
- Copy paste content with max limit characters into CKEditor-4 and then pressing any character on keyboard erases all content from CKEditor HOT 2
- How to Add New Font Helvetica in Font Dropdown in CkEditor Standard Version 4.16.1 HOT 3
- CKEditor 4 Control couldn't get cursor focus on toolbar buttons while using keyboard tab key, requirement for 508 Accessibility feature HOT 1
- Complete lang fr.js HOT 2
- Causes "Uncaught TypeError: mySelection.getNative() is null" when dragging blocks
- ckeditor-wordcount-plugin npm packge version update HOT 2
- Word count inaccurate after a line-break is introduced HOT 2
- Using filter results in incorrect word count HOT 2
- warnOnLimitOnly set to true not removing excess characters above the limit HOT 8
- Notification plugin config? HOT 3
- List of items show incorrect word count.
- How to integrate wordcount plugin with ckeditor4-angular? HOT 2
- Symbol counter adds +1 to real one HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ckeditor-wordcount-plugin.