Skip to content

getData() wrong response right after image dropped #1180

Open

Description

Are you reporting a feature request or a bug?

Bug

[Check if the issue is already reported]

I've searched for hours

Provide detailed reproduction steps (if any)

User drops image to the editor, the image uploading successfully, the image tag is missing from the getData() response.

  1. Drop image to the editor --> Upload successful, the image is appearing in the editor, the image's URL changing to the uploaded image's URL.
  2. editor.getData() will print the content without the inserted image tag some reason. The complete

<img src="pathtotheimage"> html tag is missing from the getData() returned value. The rest part of content is okay, only the last dropped image's html tag is missing.

If I drop an image to the editor, then I change anything in the editor, this issue disappears.
I suppose ckeditor forget to update something after the successful image uploading.

I tried fire change,saveSnapshot,key events after 'fileUploadResponse' event and before getData() function, without any luck.

Expected result

getData() function should return with the real content of ckeditor after image dropped

Actual result

It returns without image

Other details

  • Browser: All (tested on Chrome and Firefox)
  • OS: All
  • CKEditor version: latest (4.8.0)
  • Installed CKEditor plugins: extraPlugins = 'sourcedialog,jsplus_image_editor,filebrowser,uploadimage'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    plugin:imageThe plugin which probably causes the issue.The plugin which probably causes the issue.status:confirmedAn issue confirmed by the development team.An issue confirmed by the development team.type:bugA bug.A bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions