Conflict with Webform

gemini - October 28, 2008 - 22:13
Project:TinyMCE
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

Just upgraded to 2.3 version every time I go to edit an existing form, it gives me a blank white page with multiple links "disable rich-text". Rich text is my custom HTML filter.

I used the tinymce_theme function to unset the following fields:
case 'extra-items':
case 'extra-description':
case 'value':
case 'webform-confirmation':
case 'webform-additional-validate':
case 'webform-additional-submit':

I looked up the source code, and everything was actually there, so I went ahead and disabled tinymce for the "body" field (case 'body':) and the webform rendered just fine. Disabling the body doesn't really work well since it disables it site-wide.

I'm using tinymce 5.x.-1.9.

Anyone else can confirm this bug?

#1

chromix - October 29, 2008 - 17:04

I can confirm the same thing happened to me with the latest Webform 5.x-2.3. I'm running tinymce 5.x-1.9 as well.

#2

tourtools - November 9, 2008 - 00:28

same thing for me since I installed JQuery Update 5.x-2.0, but probabili the issue is related to tinymce and jquery_update

#3

jimben - November 21, 2008 - 07:27

This seems to be happening to me only in FireFox 2 and not in IE7 or Chrome, although I haven't tested extensively.

#4

jgadrow - November 21, 2008 - 19:47

I can also confirm that when using the same module versions as the original poster that I receive the same error.

#5

brei9000 - November 24, 2008 - 20:15

I also confirm this issue.

#6

seanr - December 15, 2008 - 19:09
Version:5.x-2.3» 5.x-2.x-dev
Priority:normal» critical

Great that everyone (including myself) is confirming this issue, but does anyone have any idea what the heck is actually causing it? Where's the webform module's maintainer? Setting this issue to critical since it completely breaks the node/add and node/edit forms and tinymce is used on TONS of Drupal sites.

#7

quicksketch - December 16, 2008 - 01:17

My guess is that the problem is in tinyMCE, considering that Webform works without tinyMCE just fine. Webform modifies the body field to move it to it a different location in the form (putting it in the Webform settings instead of in the root of the form). My guess is that tinyMCE has hard-coded some kind of modifications to the body field without checking that it is in that location.

#8

seanr - December 19, 2008 - 18:11
Status:active» needs work

Why does webform need to make that modification? If moving it back to the default location will solve the problem, why not do that and just alter the label and description instead if you need it to be different than a standard node form? I tried moving it back out of the fieldset and TinyMCE works fine. See attached for a rough but working patch.

AttachmentSize
webform.module.patch 2.07 KB

#9

quicksketch - December 19, 2008 - 20:31

Rather than changing Webform, I think the appropriate response is fixing tinyMCE, which just shouldn't assume that the field isn't moved, or that it is there at all. If it breaks because of the move, my guess is that it also breaks when the body field does not exist at all. The webform fields are all grouped together in "Basic settings" specifically to prevent CCK fields or other options from accidentally separating the Webform options from each other.

#10

XerraX - December 22, 2008 - 14:03
Version:5.x-2.x-dev» 6.x-2.3

problem also exists on Drupal 6 version

#11

quicksketch - January 11, 2009 - 02:28
Title:Conflict with TinyMCE» Conflict with Webform
Project:Webform» TinyMCE
Version:6.x-2.3» 5.x-1.x-dev
Status:needs work» active

Anyone using Drupal 6, I'd recommend using WYSIWYG API and install tinyMCE that way. Current signs are pointing to tinyMCE module being abandoned. This won't be fixed in Webform as it's a tinyMCE bug.

#12

naught101 - February 25, 2009 - 11:10

I'm getting this on one site too.

One thing I noticed is that in firefox 2, if I try to load http://website.org.au/node/add/webform, it doesn't finish, and if I then go to a different address, the page appears as: wyciwyg://13/http://website.org.au/node/add/webform in the history/back button list. Any ideas what that might mean?

#13

davidlerin - February 26, 2009 - 12:32

I can confirm this bug as well. Would be very nice to get this fixed, as it is rather critical.

#14

Onopoc - September 19, 2009 - 18:03

@naught101: Same here as #12. The following temporary fix works for me http://drupal.org/node/525586#comment-2061162

#15

yan - October 7, 2009 - 17:11

I'm getting the same error message in a Drupal 5.20 install with TinyMCE 5.x-1.9 after I installed JQuery Update 5.x-2.0.

 
 

Drupal is a registered trademark of Dries Buytaert.