Using
Media 7.x-2.0-alpha
CKEDITOR 3.6.6.1.7696
I have a text type called article, that has the media browser button, and Convert Media tags to markup is checked.
When I enter a new article (blank WYSIWIG) and use media browser. The images come in like this:
<p>[[{"fid":"1901","view_mode":"mb_article_full","fields":{"format":"mb_article_full","field_file_image_alt_text[und][0][value]":"National Underground Freedom Center","field_file_image_title_text[und][0][value]":"National Underground Freedom Center","field_photo_guide_tag[und] [673]":"673"},"type":"media","attributes":{"alt":"National Underground Freedom Center","title":"National Underground Freedom Center","class":"media-element file-mb-article-full"}}]]</p>
If there is text in the article. And I insert the same photo using media browser. The images come in like this:
<!--MEDIA-WRAPPER-END-1--><img alt="National Underground Freedom Center" class="media-element file-mb-article-left" data-file_info="%7B%22fid%22:%221901%22,%22view_mode%22:%22mb_article_left%22,%22fields%22:%7B%22format%22:%22mb_article_left%22,%22field_file_image_alt_text%5Bund%5D%5B0%5D%5Bvalue%5D%22:%22National%20Underground%20Freedom%20Center%22,%22field_file_image_title_text%5Bund%5D%5B0%5D%5Bvalue%5D%22:%22National%20Underground%20Freedom%20Center%22,%22field_photo_guide_tag%5Bund%5D%5B673%5D%22:%22673%22%7D,%22type%22:%22media%22%7D" src="http://dev-cincinnatiusa.gotpantheon.com/sites/default/files/styles/article_left/public/National_Underground_Railroad_Freedom_Center.jpg?itok=hPJtsOso" title="National Underground Freedom Center" typeof="foaf:Image" />
Question #1:
Which one do I want to be working towards?
Question #2:
Is this a Media error, a CKEditor error, or any ideas how I can make this consistent.
I tried installing the latest dev version to see if that would fix, but it was a bit of a horror show (missing edit button, images not appearing in library), so I rolled back to the stable version.
Seriously, ANY HELP at all would be appreciated. I have been banging my head against the wall for the last 3 days about this and I need to move on.
Comments
Comment #1
CLEE25 CreditAttribution: CLEE25 commentedThe patch here fixed my issue
https://drupal.org/comment/8009593#comment-8009593
Comment #2
CLEE25 CreditAttribution: CLEE25 commentedComment #3
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedClosing 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