Closed (outdated)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2013 at 18:36 UTC
Updated:
26 Jan 2019 at 17:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ParisLiakos commentedcorrect tag
Comment #2
arthurf commentedHere's a first pass at this. I think it's fine but we might may want to consider a css declaration on .media-element-container { display: inline; }
This patch doesn't cover sending data back to the WYSIWYG. I think it would be good to display field data in the WYSIWYG but that's beyond the scope of this issue I think.
Comment #3
arthurf commentedComment #4
ParisLiakos commentedi am confused..this already works? see http://drupal.org/node/1421786
Comment #5
arthurf commentedActually I mean rendered in side of the WYSIWYG editor itself #1321786: Permission not working doesn't render fields inside along with the file- it just sends the image itself. I created #1888468: Render file fields inside the WYSIWYG editor to address this issue.
Comment #6
ParisLiakos commentedthe problem here: when we apply a div, we actually output invalid html cause most editros wrap everything in
<p><p><div>Something</div></p>Is invalid html..sigh this is going to be a pita
Comment #7
dalinAnyone coming to this issue from the borked #1169192: Add classes to images floated left or right that is looking for a way to add classes based on floats, the following is the easy way that doesn't deal with the divs-in-p-tags issue.
Comment #8
kirkofalltrades commenteddalin,
I'm very interested in using your module, but it doesn't appear to be working for me. I created the custom module, changed the function names to match in the .module file. I am using Media 7.x-2.0-unstable7. Do I need to be using the dev?
Thanks!
Comment #9
dippers commentedThe fix in #8 has too many media in the function name, it should be MYMODULE_media_token_to_markup_alter.
The fix will not work with the media crop module as that ignores element attributes and uses the tag_info attributes instead.
Comment #10
ellen.davis commentedLooks like the wysiwyg stuff was moved into sub-modules at some point. After I upgraded to 7.x-2.0-alpha3+40-dev I found I needed to use this function instead.
Comment #11
dddbbb commentedSeems like there's some overlap between this issue and https://drupal.org/node/2018075 - the latter is more up to date in that it works with the recent move to a Media WYSIWYG sub module. Neither of these issues are 100% solved but it would be great try to focus efforts on one issue if possible.
I've resisted marking as duplicate in case I've missed the point - can someone confirm if I'm on the right track here?
Comment #12
osopolarEdit: sorry, wrong issue.
Comment #13
chris matthews 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