CKEditor breaks while uploading image and saving before the image upload is finished