Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I changed to CKeditor to day, and need a filter for resizing image. But when I enabled this filter in my content, all of my inserted images disappears.
-
In HTML elements and attributes:
br,span,em,strong,cite,code,blockquote,ul,ol,li,dl,dt,dd,a,p,span,div,h1,h2,h3,h4,h5,h6,img,hr,br,br /,ul,ol,li,dl,dt,dd,table,caption,tbody,tr,td,em,b,u,i,strong,del,ins,sub,sup,quote,blockquote,pre,address,code,cite,strike
It would be nice if someone could tell me how to fix this
Comments
Comment #1
Plazik CreditAttribution: Plazik commentedHi.
I had a similar problem.
I inserted
img[*],scr
in HTML elements and attributes and it works fine for me.Comment #2
Ole Martin CreditAttribution: Ole Martin commentedThanks, now it works fine.
Comment #3
jh3 CreditAttribution: 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
mcdruidconfirm this issue on 6.x-1.5
seems to be fixed in the current dev version.
Comment #5
mcdruidI 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
mcdruidissue 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 CreditAttribution: 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 CreditAttribution: luthien commentedI applied patch #6 but still not working, the image was removed.
Comment #9
stefan.r CreditAttribution: stefan.r commentedClosing 6.x support requests