First time I tried to insert media to CKEditor, I just tried to drag the attached media to the editor field, because I did not know about the existence of the "add media" button. In fact it will insert an image, but what is missing is the format choice. Is there a way to add that choice, may be by letting pop-up the same dialogue box that appears when you use the button?

Comments

devin carlson’s picture

Status: Active » Closed (won't fix)

"Dragging" an image from another website isn't a supported method of adding media. Using the "add file" form, either directly or through WYSIWYG, is required as information about the media must be recorded in the database before the Media module can interact with it.

ñull’s picture

Title: Drag and drop format choice » Drag and drop image style choice
Status: Closed (won't fix) » Active

I was not talking about another website or was I? Sorry if I was not clear.

The format choice is not the source of the image. I am talking about images stored on the same server as Drupal, either public or private. What I miss is the possibility to choose the image pre-set format (thumbnail, medium, large, square_thumbnail).

I have a content type with an image field and the media widget. I attach the image (or choose one from the library), then I drag the image to the WYSIWYG editor and this is inserted:

<img alt="" src="sites/default/files/styles/square_thumbnail/public/IMGP1049.jpg" height="135" width="180">

So apparently by default the square_thumbnail is chosen as style. What I miss is that the user can decide the style to insert or at least that the administrator can choose what is the default style to be inserted when you do a drag drop operation. At the moment there is no choice at all.

tsvenson’s picture

Status: Active » Postponed

@ñull: This is something that needs to be addressed in the editor integration yes, but it is also a rather complicated issue and one that needs to be done for each editor individually.

So at least for now I set this issue to postponed. Personally I would even prefer if the wysiwyg integration was moved to its own modules. Media core needs to be lean and focused.

chris matthews’s picture

Component: WYSIWYG integration » Code
Issue summary: View changes
Status: Postponed » Closed (outdated)

Closing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team