When media module inserts mediaelement into a wysiwyg we return an audio element, and so the insert fails.
We should do what the media_youtube module does and react to that.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | mediaelement-1462854-media-insert.patch | 4.4 KB | steven jones |
| #1 | mediaelement-1462854-media-insert.patch | 4.37 KB | steven jones |
Comments
Comment #1
steven jones commentedComment #2
steven jones commentedThis patch causes a warning, and thus needs a little tweak.
Comment #3
steven jones commentedI think this should be enough, sometimes the $entity is NULL for some reason.
Comment #4
dpfitzsi commentedTried to install this patch to work with Media 1.3 (seems that this issue mostly involves the 1.x version of media).
I'm receiving this error when I try the patch:
Notice: Undefined variable: element in mediaelement_field_formatter_view() (line 148 ...Comment #5
jnettik