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

Pasting images from Word #662

Closed
Comandeer opened this issue Jul 19, 2017 · 7 comments · Fixed by #1241
Closed

Pasting images from Word #662

Comandeer opened this issue Jul 19, 2017 · 7 comments · Fixed by #1241
Assignees
Labels
plugin:pastefromword The plugin which probably causes the issue. status:confirmed An issue confirmed by the development team. target:major Any docs related issue that should be merged into a major branch. type:feature A feature request.
Milestone

Comments

@Comandeer
Copy link
Member

Comandeer commented Jul 19, 2017

Are you reporting a feature or a bug?

Feature request

Provide detailed reproduction steps (if any)

  1. Open attached Word document.
  2. Select all its content.
  3. Paste into CKEditor.

Expected result

Image is pasted correctly.

Actual result

Image is not pasted and console shows error:

Not allowed to load local resource: file:///[redacted]/clip_image002.png

There should be a sensible way to detect such images and try to embed them anyway, converting to Blob (see also #505). However I'm not sure how to omit limitation with ability to get access to local files… Maybe try to extract images from RTF representation of pasted Word content?

Browser Compatibility

Latest versions of:

  • Chrome
  • Firefox
  • Edge

Feature cannot be implemented in Internet Explorer since it does not support Clipboard API.

Also it cannot be implemented in Safari, as it does not expose RTF clipboard, which we use to extract images. Webkit team claims that Safari fixed this issue, however it's still not resolved in Tech Preview today (see #1134 (comment)).

Other details

  • Browser: Chrome, Firefox
  • OS: macOS
  • CKEditor version: 4.7.1
  • Installed CKEditor plugins: pastefromword

Attachments

@Comandeer Comandeer added plugin:pastefromword The plugin which probably causes the issue. status:confirmed An issue confirmed by the development team. type:feature A feature request. labels Jul 19, 2017
@Comandeer Comandeer added this to the Backlog milestone Jul 19, 2017
@mlewand
Copy link
Contributor

mlewand commented Jul 19, 2017

Yes, image blobs are extractable from RTF clipboard.

@bahuma20
Copy link

Works in Internet Explorer

@mlewand
Copy link
Contributor

mlewand commented Jul 27, 2017

That's correct. AFAIR it does only work in IE11 (as it inlines all the images natively). This feature has been reverted in MS Edge though.

@mlewand
Copy link
Contributor

mlewand commented Dec 1, 2017

Added information on browser compatibility.

@fikoborquez
Copy link

I have this issue pasting images with text in Chrome but not in Firefox. Can anybody give me some help?

@mlewand
Copy link
Contributor

mlewand commented May 11, 2018

@fikoborquez issue a bug report including all the required information and we'll investigate whether there's some problem with it.

Make sure to use the latest version of CKEditor, and ensure that the problem exists on official CKEditor demos.

@JURALOVE
Copy link

Thanks. This hile was my solution ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin:pastefromword The plugin which probably causes the issue. status:confirmed An issue confirmed by the development team. target:major Any docs related issue that should be merged into a major branch. type:feature A feature request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants