Skip to content
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

Editor crashes after pasting image to the caption #1538

Closed
Mgsy opened this issue Jan 31, 2018 · 1 comment
Closed

Editor crashes after pasting image to the caption #1538

Mgsy opened this issue Jan 31, 2018 · 1 comment
Labels
plugin:easyimage The plugin which probably causes the issue. resolution:duplicate A duplicate of an already reported issue. type:bug A bug.

Comments

@Mgsy
Copy link
Member

Mgsy commented Jan 31, 2018

Are you reporting a feature request or a bug?

Bug

Provide detailed reproduction steps (if any)

  1. Open the sample with Easy Image plugin and two images - one with the caption and second without the caption.
  2. Copy the image without the caption.
  3. Focus some caption.
  4. Paste the image.

Expected result

The image is pasted properly.

Actual result

Editor crashes

Other details

Notes

This bug occurs only if you paste the image without the caption.

Error

plugin.js:2858 Uncaught TypeError: Cannot read property 'editables' of undefined
    at plugin.js:2858
    at CKEDITOR.htmlParser.element.forEach (fragment.js:622)
    at CKEDITOR.htmlParser.element.forEach (fragment.js:636)
    at CKEDITOR.htmlParser.element.forEach (fragment.js:636)
    at CKEDITOR.htmlParser.element.forEach (fragment.js:636)
    at Editor.<anonymous> (plugin.js:2813)
    at Editor.listenerFirer (event.js:144)
    at Editor.CKEDITOR.event.fire (event.js:290)
    at Editor.CKEDITOR.editor.fire (editor_basic.js:24)
    at CKEDITOR.htmlDataProcessor.toDataFormat (htmldataprocessor.js:294)

GIF

bug_cke4

  • Browser: All browsers
  • OS: All platforms
@Mgsy Mgsy added type:bug A bug. plugin:easyimage The plugin which probably causes the issue. labels Jan 31, 2018
@Comandeer
Copy link
Member

Already reported as upstream issue #1469.

@Comandeer Comandeer added the resolution:duplicate A duplicate of an already reported issue. label Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin:easyimage The plugin which probably causes the issue. resolution:duplicate A duplicate of an already reported issue. type:bug A bug.
Projects
None yet
Development

No branches or pull requests

2 participants