webforms filter system for descriptions doesn't work with tinymce correctly

marcingy - April 6, 2008 - 17:57
Project:Webform
Version:5.x-2.0-beta3
Component:Code
Category:feature request
Priority:normal
Assigned:marcingy
Status:patch (code needs review)
Description

If tinymce is used to format the description text within a form formatting is not preserved by the webform filter call. This is because the call to filter_xss always uses the default filter list. This removes the

tags placed by tinymce. Instead a call should be made to check_markup to allow for variable html filter lists.

This change may justify the revision of my previous filter patch as a call to check_markup is no longer made in the description_filter function. If tinymce is not used the current filter process works correctly

AttachmentSize
webform.filter.patch937 bytes

#1

marcingy - April 6, 2008 - 18:20
Status:active» patch (code needs review)

change to correct status

#2

marcingy - April 6, 2008 - 19:01

New version to fix issue with emails etc.

AttachmentSize
webform.filter2.patch1.41 KB
 
 

Drupal is a registered trademark of Dries Buytaert.