Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When looking at the source in CKEditor there is a '"attributes":{"class":"media-image","typeof":"foaf:Image"}' part, but when looking at the source code when viewing the page, no such class is in the img tag. The RDFa attribute is there though.
Comment | File | Size | Author |
---|---|---|---|
#6 | honor-class-override-1018606-6.patch | 1.16 KB | aaron |
#3 | styles-1018606.patch | 1.13 KB | Jackinloadup |
Comments
Comment #1
aaron CreditAttribution: aaron commentedmoving to proper queue.
Comment #2
Jackinloadup CreditAttribution: Jackinloadup commentedi have run into this issue as well. My biggest issue is it dropping style. Might take a look into it if i can get a change. Any one know anything about the source of the problem? any leads?
Comment #3
Jackinloadup CreditAttribution: Jackinloadup commentedOk so i had found a fix for 7.x-2.0-alpha4 but things seems to have changed pretty dramatically in the areas I was dealing with between alpha4->5.
the information about the the wysiwyg style and class settings are in the override array which shows up in the $variables array for the theme functions. Namely theme_file_styles_image.
I was able to get a working patch but it seems kinda janky. Please review!!!!!!!!
Things I noticed
styles/contrib/file_styles/file_styles.theme.inc
seems to be replaced with
styles/contrib/file_styles/includes/themes/file_styles.theme.inc
yet styles/contrib/file_styles/file_styles.theme.inc still exists.
Comment #4
tsvenson CreditAttribution: tsvenson commentedSeems to partially fix the problem. The classes are now there, but I also get these errors:
At first view of the page I get them once, then they seems to be cached somehow and are shoring up twice.
This is with latest dev releases of Media/Styles.
Comment #5
mrfree CreditAttribution: mrfree commentedNothing changes in file_style between alpha5 and dev (Last updated: January 19, 2011 - 01:39)
Comment #6
aaron CreditAttribution: aaron commentedhere, try this patch. don't have time to test right now. thanks!
Comment #7
tsvenson CreditAttribution: tsvenson commentedWill give it a spin tomorrow. So you got the code spint at DrupalCon going then? :)
Comment #8
aaron CreditAttribution: aaron commentedyes, there was some awesome work accomplished -- some patches towards views integration, moving media entities to file entities and more!
Comment #9
tsvenson CreditAttribution: tsvenson commentedOki, Aaron. As promised I have now tested your patch and it does the trick. Classes are now again available in the output code. Great work.
This is tested with today's Styles dev release. The commit burst for the Media module has not yet propagated to the dev tarball so it's not tested with that. Doubt it should affect this though.
Comment #10
AlanAtLarge CreditAttribution: AlanAtLarge commentedSubscribing
Comment #11
aaron CreditAttribution: aaron commentedawesome, thanks! committed.
Comment #12
tsvenson CreditAttribution: tsvenson commentedGlad I can be of some little assistance.