The latest version of the dialogue module now uses the HTML editor (should be in CVS tomorrow). In testing I found that teachers can use the editor but students can not. This is a moodle restriction in the print_textarea() function. When did that happen?
I'm using the editor now but I assume I'm a student here, strange...
No, you may have misread the function, Ray .. the only teacher check is for passing the courseid which allows the editor popups to browse courses files etc.
Great work lately, BTW!
Great work lately, BTW!
Yes, the function I'm running on the production server (1.3.1) does not lock students from the editor . I've just tried the new version of Dialogue and it's fine, students get the HTML editor for new entiries. I just wonder why students weren't seeing the editor on my development server. I'll check it out.
Ya, I'm back in the land of the coders , running on a shiny, new Athlon 64 box, whoosh...
Ya, I'm back in the land of the coders , running on a shiny, new Athlon 64 box, whoosh...
The use of the HTML editor created a problem in the Dialogue module . When there was more than one reply and you answered only one of them say, all the entries were taken as containing something. The naughty HTML editor puts things into all the replies even if you don't. That's now been fixed in the new version . It should be in CVS tomorrow.
The problem on my local machine is weird. As I say, the teacher gets the editor, the students don't. The students haven't disabed the editor. In fact looking at the source all the various Editor scripts are in place as is the call to the HTMLArea.replace() function. The only difference I can see in the HTML source is a id=n when it's the teacher. I take that to be the course id. It's the same course, same browser, same server. The same thing happens in a forum, the teacher gets the editor, the students give a plain textarea. As I say weird...
Just tried something, turned off Debug and, bingo, the students get the editor. Phew that's a relief . Now I wonder why that is... [but I'm resting easy now].
The problem on my local machine is weird. As I say, the teacher gets the editor, the students don't. The students haven't disabed the editor. In fact looking at the source all the various Editor scripts are in place as is the call to the HTMLArea.replace() function. The only difference I can see in the HTML source is a id=n when it's the teacher. I take that to be the course id. It's the same course, same browser, same server. The same thing happens in a forum, the teacher gets the editor, the students give a plain textarea. As I say weird...
Just tried something, turned off Debug and, bingo, the students get the editor. Phew that's a relief . Now I wonder why that is... [but I'm resting easy now].