The "Plugin for inserting images from Drupal media module" fails in the last step "submit". So the uploaded or chosen image isn't embedded.

I get the JS error "TypeError: c is undefined" in ckeditor.js. (Firebug)
Or: "Uncaught TypeError: Cannot read property 'isBlock' of undefined " x/media/js/media.format_form.js. (Chrome console)

Using Drupal 7.22, CKEditor 4.1, Media 2.x.

Comments

wwalc’s picture

Status: Active » Closed (duplicate)
dmsmidt’s picture

Status: Closed (duplicate) » Closed (cannot reproduce)

It may have been affiliated but not a dup.
Anyhow it's resolved already somehow.

wwalc’s picture

Okay, thanks.

The patch in the ticket mentioned above there is already quite okay, so sooner or later it should land in the repository. If you notice any issues with it, especially any JS error, please report it there and I'll verify it.

I have seen your comment here, but had no luck in reproducing it a few days ago.

dmsmidt’s picture

And thank you for the clear answer :-)
I will post there if I have any other findings.

alphex’s picture

Status: Closed (cannot reproduce) » Active

This is killing me.
I'm having the same problem.

Can someone please indicate the solution? Its not stated well in this ticket.

Rubik admin theme
CKEDITOR
and Media 1.x... since 2.x isn't stable yet.

The submit button doesn't do anything when I click it. I just get a bunch of javascript errors.

http://alphex.com/z/js_errors-20130507-124341.jpg <-- screen shot.

alphex’s picture

I can confirm this is an issue with CKEDITOR 1.13

I downgraded to CKEDITOR 1.12, and the problem is fixed.

webcultist’s picture

Have the Problem mit 1.12. + 1.13. But I use and need the 2.x branch of the media module.

morten_kroyer’s picture

Also having this issue with media 7.x-2.0-unstable7 and CKEditor 7.x-1.13
Not getting any errors in the js console as far as I can see.

I'll be happy to supply any information needed.

EDIT:
OK, I'm ashamed now! This seemed to be due to incorrect file permissions to the files dir. After allowing write for all, inserting images with above versions seems to function correctly. Might be pro-tip for others with this issue - check your files/ permissions.

undertext’s picture

Guys... I had the same issue.
The problem was in Advanced Content Filter that was introcduced in CKEditor 4.1. When i disabled it the ploblem disappeared.
http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter

Bagz’s picture

Title: Media plugin boken » Same here

Same here, it was working with one CKEditor profile but not another one. The one that was working had Adanced Content Filter disabled; the CKEditor profile that did not have it disabled did not work.

rootwork’s picture

Title: Same here » Media plugin broken

Please don't change the issue title.

Bagz’s picture

Oops.. Sorry!

jcisio’s picture

Status: Active » Closed (duplicate)

Per #1

jcisio’s picture

Issue summary: View changes

Updated issue summary.

edutrul’s picture

Issue summary: View changes

The solution posted

https://www.drupal.org/node/1504696#comment-7410626
---
For now, you can just add a setting to 'Advanced options' / 'Custom JavaScript configuration' at admin/config/content/ckeditor/edit/Advanced:

config.allowedContent = true;
---

works pretty good for me