It appears there is a JavaScript conflict between WYSIWYG editors (used via the wysiwyg module) and Closed Question's nifty graphical XML editor interface.

Current best work-around:

Click the "Disable rich text" links to turn off WYSIWYG editors on your ClosedQuestion node edit form before using the question editor.

--------------------------------------------------------------------------------------

Hi,
I just upgraded my drupal core to 7.9 and I cannot use closed questions anymore.

Pls see the video and see if you can duplicate this.

http://youtu.be/RT6TZnm0G70

cheers,
Vishal

Comments

vishalkhialani’s picture

Priority: Normal » Major

I was able to replicate this problem on a new dev site .

Hope some one can fix this.

vishalkhialani’s picture

anyone ?

adamdicarlo’s picture

Priority: Major » Critical

I can confirm this bug. I've seen it in a Checklist question. Marking critical as it makes normal use of the module pretty much impossible.

When clicking the Save button on an Option, Chrome's dev console gives me this:

Uncaught Error: NOT_FOUND_ERR: DOM Exception 8
c.extend.cleanjquery.js:125
c.buildFragmentjquery.js:121
c.fn.extend.domManipjquery.js:120
c.fn.extend.appendjquery.js:114
(anonymous function)xmlEditor.js:385
b.extend.eachjquery.js:34
b.fn.b.eachjquery.js:27
createEditorForxmlEditor.js:384
jQuery.fn.xmlTreeEditorxmlEditor.js:110
jQuery.fn.xmlTreeEditor.dataxmlEditor.js:324
c.event.handlejquery.js:64
c.event.add.h.handle.ojquery.js:57
adamdicarlo’s picture

Title: Does not work in d 7.9 » ClosedQuestion JavaScript error on Drupal 7.9 makes changing options impossible

Re-titling.

azam12345’s picture

Version: 7.x-2.x-dev » 7.x-2.1

I have same problem.

vishalkhialani’s picture

Here are two alternatives:

1) There is another module called webform which does someting similar http://drupal.org/project/webform

2) I have made a module for my needs it has no menu and just works as per wht I want. I can give it to you till they fix this module.

Cheers,
Vishal

adamdicarlo’s picture

I'm working on this bug today and hopefully getting it fixed sometime this week.

I'm hoping @HylkeVDS will allow me to become co-maintainer of this project so I can help with committing patches.

adamdicarlo’s picture

Seems that the CKEditor and/or WYSIWYG module are what's causing the problem on my site. If I disable WYSIWYG, the closedquestion tree editor JS works fine again.

I'm not sure how to fix it yet, though, beyond turning off the WYSIWYG module or doing some complicated form_alter() / css_alter() / js_alter() in order to rip out the WYSIWYG from closedquestion node editing pages (though there might be some easier way to exclude the WYSIWYG?)

adamdicarlo’s picture

Title: ClosedQuestion JavaScript error on Drupal 7.9 makes changing options impossible » ClosedQuestion JavaScript error makes changing options impossible - happens with WYSIWYG enabled
Version: 7.x-2.1 » 7.x-2.x-dev

Retitling.

adamdicarlo’s picture

Work-around: http://drupal.org/node/285200#comment-5336646. Note that *any* WYSIWYG being active on the node form causes this problem, not just if a wysiwyg is active on the body field.

I will also roll a patch soon for Closed Question that turns off WYSIWYG on the body field (which is where the XML is stored), for completeness/defensiveness. (It's a one-liner.)

adamdicarlo’s picture

I've committed a patch here that turns off the WYSIWYG for the body (XML) field.

Unfortunately, there could be other text area fields on the content type that cause a WYSIWYG to be running. It doesn't seem quite right to muck around with the settings for these other fields.

The real solution is to figure out what about the WYSIWYG is causing this problem and somehow fix it (either in the wysiwyg module or this module). But I haven't been able to find the conflict so far.

So for now: Click the "Disable rich text" links to turn off WYSIWYG editors on your ClosedQuestion node edit form before using the question editor.

adamdicarlo’s picture

Issue summary: View changes

Updated issue summary.

  • adamdicarlo committed 5976aa6 on varexport
    Issue #1334452 by adamdicarlo: Don't let WYSIWYG editor run on body (XML...
koosvdkolk’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

@adamdicarlo: Is this still an issue?

koosvdkolk’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Please reopen if the error is still there