-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The editor slows down with lots of content, and only with ckeditor5-vue #153
Comments
Hi, thanks for the report, I can reproduce this issue. It seems that if the content is quite big and contains special characters, it causes Vue integration to lag. I couldn't reproduce it on CKEditor 5 demo. Here's my test content: https://gist.github.com/FilipTokarski/ce03de49fb6b2fa05ddea402fa516286 cc @oleq Can you take a look at this? |
I agree there is a problem but I don't see any sensible solution. The thing is each time we On top of it, a couple of weeks ago we changed the |
@FilipTokarski Can you take a look at React and Angular integrations and stress them out with the same data? I'm curious about the results. |
I am also wondering whether the official CKEditor's Autosave plugin (which supposedly should behave in a similar way) has the same performance problem. |
You're probably right (but only to some extent). Autosave works on the trailing edge debounce with 1000ms timeout. So only when you stop typing and wait one second the Anyway, what if we increase the timeout in the Vue integration to 1000ms as well? The whole point of What use-cases related to |
I tried changing the |
I tried removing parts of the Vue component and testing to see if the editor slows down without them. Turns out that completely removing the |
I checked it once again with the content provided in the first comment ☝️ . Only Vue has a noticeable lag, React and Angular seem to work fine. |
You were right, I confirm this 🎉 Getting rid of The difference is colossal (typing a single character takes ~150ms with the reproducible bug and ~35ms when it's gone). Update: I just realized it's enough to prefix the |
Fix: The editor should now slow down with lots of content when using the integration. Closes #153.
I've been testing my CKEditor 5 (version 22) implementation with ckeditor5-vue.
I tried both with and w/o ckeditor5-vue and I noticed a drastic difference in the time it takes the editor to change the content when there's already lots of it. E.g., when you try to write some letters in the editor it takes several seconds for them to actually appear. That doesn't happen when you're instantiating the editor without using ckeditor5-vue.
To reproduce the problem, you may just paste into the editor the content of this file:
test_long_content.txt
The text was updated successfully, but these errors were encountered: