Needs review
Project:
Node Reference/Embed Media Browser (nrembrowser)
Version:
6.x-1.0-beta16
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Dec 2010 at 20:21 UTC
Updated:
25 May 2012 at 19:39 UTC
Jump to comment: Most recent file
Comments
Comment #1
cmidgley commentedI have made a patch to fix two problems:
1) The loss of the attributes that are non-compliant with HTML styles. Instead of passing the attributes in 'style' (and using 'rel' for the styleName), I changed the code to pass all attributes in 'rel' (as well as style, so that HTML styles like width/height continue to behave).
2) The ability to have the imagecache preset work during wysiwyg editing. This is done by passing a new querystring of 'imagecache=
' on theComment #2
cmidgley commentedFound a problem with the prior patch ... when attributes are changed (like width, height and float) using WYSIWYG, those attributes would be lost. This was because the attributes were being adjusted in the html 'style' attribute, which the patch would ignore in favor of saving styles in 'rel'.
Attached is an updated patch that fixes this by merging attributes from 'style' and 'rel'. This way, if the browser loses any attributes in style, rel will continue to retain them. If however attributes are changed in style, they will take priority over the ones stored in rel.
Comment #3
emptyvoid commentedThis looks pretty awsome, has anyone tested the patch and has it been committed to the dev branch?
Comment #4
clee_uftwf commentedMy users have noticed a somewhat related quirk where toggling between the source & WSIWYG views will cause the styleName attribute to be duplicated. Please see http://drupal.org/node/1175766 for details.
I am using 6x-1.0-beta16 with drupal 6.