Closed (fixed)
Project:
Webform
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2008 at 22:09 UTC
Updated:
13 Mar 2008 at 02:12 UTC
I'm trying to use a markup field to hold some HTML, including an image. The problem is, the input format keeps resetting to Filtered HTML, so the image is always stripped out when the form is displayed.
Comments
Comment #1
mandclu commentedDid a little rooting in the code, and noticed a couple of things:
There appears to be some inconsistency with how that particular element is named - in most cases 'format', but in at least one place 'filter'.
In the database, nothing is getting saved in the "extra" column.
Comment #2
mandclu commentedOK, it looks like two fixes are needed: change the naming to be consistent with 'format', and fix the parents array for the filter_form call. Fortunately, both are fixed by change a single line, number 23:
Comment #3
WiseTeck commentedI can confirm this. (and the fixup done by surge_martin).
Comment #4
quicksketchThanks surge_martin, I've committed the fix to 2.x. If you could submit fixes such as this as patches, it makes reviewing and applying the changes easier for me (and fixed faster). Thanks for the help!
Comment #5
mandclu commentedFYI, the fix in the 2.x branch still has a bug ('field' is still in the parents array, which breaks the functioning in this branch).
I will try to roll a patch, however, and post it here.
Comment #6
quicksketchThanks for keeping up on this surge_martin. I removed 'field' from the parents array and tested it working.
Patches are good, keep things easy for me :)
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.