-
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
Upload Widget crash #967
Upload Widget crash #967
Conversation
@@ -251,8 +251,9 @@ | |||
|
|||
loader.on( 'update', function( evt ) { | |||
// Abort if widget was removed. | |||
if ( !widget.wrapper || !widget.wrapper.getParent() ) { | |||
if ( !editor.editable().find( '[data-cke-upload-id="' + id + '"]' ).count() ) { | |||
if (!widget.wrapper || !widget.wrapper.getParent()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
thank you for your pull request. There is still few improvements, which might be done, before your pull request will be possible to merge. General information about contributing you can find here in our guide. Those things currently are missing in your pull request:
- All changes in CKEditor requires tests. Please provide proper unit and manual tests. More information about tests you can find under this link
- Please also remember to sign CLA (it should be send on your email). Without it we cannot implement any changes made by you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code was OK, but the tests were missing.
I have added the tests, and adjusted the code style. All of this pushed to t/966
which is also rebased onto latest master
branch.
This PR was merged manually with 33d301f. Thanks for the input, and sorry for the delay it's been a busy period for us 🙂 |
What is the purpose of this pull request?
Bug fix
What changes did you make?
Added extra condition
Fix for #966