Closed (won't fix)
Project:
WYSIWYG Filter (D7)
Version:
6.x-1.5
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Dec 2010 at 17:11 UTC
Updated:
4 Feb 2016 at 16:20 UTC
Jump to comment: Most recent
Comments
Comment #1
plazik commentedHi.
I had a similar problem.
I inserted
img[*],scrin HTML elements and attributes and it works fine for me.Comment #2
Ole Martin commentedThanks, now it works fine.
Comment #3
jh3 commentedWhy does
img[*]work, butimg[!src|!alt|width|height]does not? Using the former fixes the problem, but this really shouldn't be a problem to being with.Comment #4
mcdruid commentedconfirm this issue on 6.x-1.5
seems to be fixed in the current dev version.
Comment #5
mcdruid commentedI was wrong - using a setting like:
img[!src|alt|title|style|width|height]
...does actually work with 6.x-1.5
The reason I got confused is because I'm setting up wysiwyg_filter in an install profile, and this means no parsed version of the settings are stored, and the input filter falls back to using the default valid_elements and therefore strips my images.
When I go in and make any changes in the admin form (e.g. testing out img[*]) the parsed version gets saved, and images appear. They work with the above settings too so long as the admin form has been saved to parse the settings.
I'll open a separate issue about this.
Comment #6
mcdruid commentedissue re. missing parsed settings: #1270362: reliance on submission of admin form to store parsed settings means wysiwyg_filter is hard to configure in code
Comment #7
luthien commentedI'm using the same settings and the image was removed after saving the node.
@[class|title|style],
a[href|target<_blank|title|rel|name],
em/i, strong/b, strike, sub, sup,
img[width|height|alt|title|!src|vspace|hspace|class],
p[align div[align br,address, em, strong, hr, blockquote, pre, cite, code, span,
h1,h2,h3,h4,h5,h6,
ul,ol,li,dl,dt,dd,
table[width|cellpadding|cellspacing|border|summary|align colgroup,col,
tr[align|valign|rowspan],
td[align|valign|width|colspan],
th[align|valign|width|bgcolor|colspan|nowrap],tbody,thead,tfoot
Comment #8
luthien commentedI applied patch #6 but still not working, the image was removed.
Comment #9
stefan.r commentedClosing 6.x support requests