-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
4.15.0 - Paste overwrites existing text #4301
Comments
I have found a clue! The issue only occurs if we use enterMode = 3 ( Also, if I switch source, put any text underneath the |
I can reproduce it consistently now. Sometimes it stops happening, but if I clear browser history for the last hour, close and reopent the browser, paste text, hit enter, paste text, and it happens every time. |
Also, seems like it could be related to the change made here: |
I'm trying to debug the issue manually, but I can't get CKEditor to load properly in source format so that can modify the code and test. Editor appears to load (no JS errors), but is not editable. |
@laurin1 could you provide a sample demo with the issue using online editor, like one of: |
Geez, I don't know if that is possible. These are extremely complex pages that the CKEditor is built into, all dynamically created using PHP, but I will try. |
Actually, it does it with even a very basic example: https://jsfiddle.net/laurin1/x45pjdef/ Copy this word: attendance Paste it in the editor, then press enter and paste it again, press enter, paste again, ad infinitum...always overwrites. |
I can reproduce the issue, thanks for the demo! It seems like the editor should be initialized empty, otherwise, it seems to work correctly. I will update the top post with reproduction steps. |
Closed in #4356 |
Reproduction steps
Expected
Every time a new line is pasted.
Actual
Pasted text replaces the line above.
Other
The issue is reproducible with enter mode
CKEDITOR.ENTER_DIV
option and when the editor is initialized totally empty.The text was updated successfully, but these errors were encountered: