When pasting images into CKEditor, they don't appear to be created as DrupalImage objects. This makes it so double clicking doesn't pop up an editor window in order to left, center, right align, edit alt text, or add captions.

Expected behavior would be that the pasted images act as images that you insert when uploading and settings can all be changed.

CommentFileSizeAuthor
#7 Screenshot from 2016-01-06 09:43:37.png37.9 KBAnonymous (not verified)
#7 Screenshot from 2016-01-06 09:37:02.png61.28 KBAnonymous (not verified)
#7 Screenshot from 2016-01-06 09:36:19.png49.2 KBAnonymous (not verified)
#7 Screenshot from 2016-01-06 09:35:30.png35.32 KBAnonymous (not verified)
#7 Screenshot from 2016-01-06 09:34:28.png176.89 KBAnonymous (not verified)

Comments

Anonymous’s picture

vilepickle created an issue. See original summary.

swentel’s picture

That really does sound as a feature to me (or maybe even works by design), pasting images sounds, well weird :)

Anonymous’s picture

Doing a little more investigation, pasted images lack a data-entity-type and data-entity-uuid attribute which is required for the Drupal dialog to work. If you paste images with normal CKEditor they work fine with its dialog: http://sdk.ckeditor.com/samples/captionedimage.html

It makes sense technically that they lack those attributes since they're not local files and not present in the file_managed table, but the UX still really sucks.

wim leers’s picture

Title: Pasted images cannot be edited in CKEditor dialog » Pasted images cannot be edited in EditorImageDialog
Component: ckeditor.module » editor.module
Status: Active » Postponed (maintainer needs more info)
Related issues: +#2510394: [drupalImage] Setting to still allow linking to an image by URL even when uploads are enabled

Can you post screenshots to clarify what you mean?

Depending on what you mean exactly, this could be a duplicate of #2510394: [drupalImage] Setting to still allow linking to an image by URL even when uploads are enabled.

Anonymous’s picture

I can post some images of it happening. It is similar to that issue though. I was pasting an external site image into the WYSIWYG and wanting to manage some of its attributes in the interface. This would be an img that was not uploaded and thus doesn't have a database entry in Drupal.

wim leers’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Right. So let's solve this in #2510394: [drupalImage] Setting to still allow linking to an image by URL even when uploads are enabled. Can you please post a short screencast showing the problem there? That makes the use case clear to everybody.

Please also see #2510394-4: [drupalImage] Setting to still allow linking to an image by URL even when uploads are enabled — I wonder what your answer is to that concern :)

Anonymous’s picture

I've added a series of screenshots here.
09:34:28 - BUG: Pasted (external) image in the WYSIWYG, right clicking shows no "properies" option and double clicking does nothing
09:35:30 - Pasted (external) image source code
09:36:19 - Normal Drupal upload dialog window
09:37:02 - Correct image display in the WYSIWYG with border and edit options, able to be double clicked and attributes changed
09:43:37 - Correct image source for an uploaded Drupal image