Closed (fixed)
Project:
Quiz
Version:
6.x-4.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Jul 2009 at 16:42 UTC
Updated:
19 Dec 2009 at 12:01 UTC
The wysiwyg editor won't show up with the quiz module, but it shows up at all other modules. Any suggestions would be appreciated.
Comments
Comment #1
sivaji_ganesh_jojodae commented1. do you mean that quiz module is not listed in
admin/build/modules/listpage ?2. are you sure the quiz module files are located in
sites/all/modulesdirectory and it is not moved/changed to some other directory recently ?3. "The wysiwyg editor won't show up with the quiz module." can you please explain this line ? What are the steps required to reproduce the bug?
What behavior were you expecting? What happened instead? Drupal path that causes this issue ?
Comment #2
ashaw4949 commentedI have installed the WYSIWYG API as a client-side editor appearing in the textarea for blog, book, story, etc. However, my primary interest is to have the editor appears in the quiz module - so that I can write questions with the help of the WYSIWYG editor.
The main problem is the editor won't appear at all for any type of quiz questions regions. I believe there must be a place to configure or include the editor. I just do not seem to find where can I enable or include the editor in the quiz module.
Your help would be very much appreciated.
Comment #3
sivaji_ganesh_jojodae commentedGo to
admin/settings/wysiwyg/profilepage and check whether you have editor library installed. If yes check whether its working with other content types like page or story.Comment #4
ashaw4949 commentedYes, I have installed Tinymce 3.25. it's working properly with page or story. However, according to the instructions given by wysiwyg, the editor folder has tinymce.inc, and the actual tinymce editor (the whole tinymce folder) is installed at sites\all\libraries
Can you please give me another pointer? Thanks for your prompt attention.
Comment #5
sivaji_ganesh_jojodae commentedYes you are correct wysiwyg is not working on quiz or question form. You may need to add the following line to get it working
1. open
sites/all/modules/quiz/question_types/quiz_question/quiz_question.modulefile.2. add
$form['format'] = filter_form($node->format);to functionquiz_question_formline no 1463. clear the cache tables and reload the page.
Comment #6
ashaw4949 commentedLooks like it works for True/False, Short Answer, Scale Question, Matching (just the initial question only), but it does not work for multiple choice questions. It's a big progress. It would be nice if you could identify how to fix the multiple choice and the rest of the matching parts? It does seem that the editor mostly appears only at the body, but not quite at the questions, answers or feedback textarea. Thanks for your prompt attention again.
Comment #7
sivaji_ganesh_jojodae commentedi am sorry i have to concentrate on my work. quiz 2.x had wysiwyg integration I don't why it has been removed in quiz 3.x (and higher). If you like to have this feature please do create an issue under feature request category or if you want to get it done immediately please contact me or other quiz developer through user profile contact form.
Comment #8
ashaw4949 commentedNot a problem, please take your time. You are doing great! Keep up your great work. Thanks again.
Comment #9
turadg commentedI tried Sivaji's edit (in comments) in quiz_question.module. I'm happy to report that it made WYSIWYG work on my installation.
I also made the same in multichoice.module, though it didn't work until I also commented out this line:
$form['body_filter']['format'] = filter_form($node->format);
I just committed these changes and we'll see how they work for people. Sivaji pointed out in IRC that the WYSIWYG breaks the Jquery autotitler. We should be able to fix that by asking the field for clean text instead of HTML.
Please report on this ticket any other problems you encounter.
Comment #10
turadg commentedHere's a helpful reference to make WYSIWYG work in forms,
http://drupal.org/node/358316
Comment #11
ashaw4949 commentedIt works. Thanks!
Comment #12
falcon commentedWysiwyg is working everywhere in 4.x-dev AFAIK
Comment #13
geek-merlinsubscribing