Steps to reproduce:

  • Login as a user with edit rights
  • Go to node/#
  • Click to go into quick edit mode
  • Click on any image, then click "Select"
  • Click "Library" tab
  • Select an image and click "Submit"

Error shown in JS console:

{
Uncaught TypeError: Object #<Object> has no method 'getDisplacement' media.popups.js:355
}

The image does not update.

A workaround we've found is to click 'Remove' first and then 'Select' to place a new image.

Comments

saltednut’s picture

Title: Quick Edit for Media does not work for replacing files. » Quick Edit for Image field does not work for replacing files.
wim leers’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

The Drupal 8 backport (#2111667: Backport Drupal 8's Edit module to Drupal 7) might have fixed this. Can you please test again?

wim leers’s picture

Title: Quick Edit for Image field does not work for replacing files. » Media Filter's CKEditor integration breaks when CKEditor is inline mode (was: "Quick Edit for Image field does not work for replacing files")
Project: Edit » Curate
Version: 7.x-1.x-dev »
Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new118.39 KB
new94.79 KB

I can't reproduce *this*, but there's definitely something going wrong: the Media Filter's CKEditor integration doesn't appear to work when CKEditor is being used in inline mode.

Edit knows the type of the filter, and the CKEditor in-place editor's request to the server to retrieve the unfiltered version so the user can start in-place editing it succeeds, with the correct response. CKEditor's in-place editor correctly loads CKEditor plugins, including the media CKEditor plugin, so that's also not the problem. Hence the problem lies with the Media plugin for CKEditor: it works fine on the full node form (where CKEditor is in iframe mode), but it fails while in-place editing (where CKEditor is in inline mode).

Happens both with "pre beta 1" aka "ancient" Edit and with RC1: see attached screenshots.

saltednut’s picture

Project: Curate » CKEditor 4 - WYSIWYG HTML editor
Version: » 7.x-1.x-dev

'Curate' is an incorrect queue for this issue to be moved to it is not something that would be isolated to just sites using 'Curate' to manage their CKEditor/Edit/Media config.

This issue should be moved to the CKEditor module queue, in my opinion. (Though some might argue the problem belongs to the Media modue.)

It certainly should not be tracked for a single distribution.

wim leers’s picture

It's possible that it's a Curate-induced problem — however unlikely. That's why I felt it more appropriate that it lived in Curate, until you determined the exact module that causes the problem.

Since this integration between CKEditor and Media indeed seems to be provided by the CKEditor module (as per #1504696: Integration with CKEditor module), this appears to be the appropriate issue queue indeed.

saltednut’s picture