[sage-support] Re: using cell server with moodle (problem with script balise)

2013-11-13 Thread Stefan van Zwam
I'm running into the same problem with Wordpress. When I switch their TinyMCE editor between Text and Visual modes, it will add in those tags. My solution is to edit only in Text mode (the Sage boxes are invisible anyway in Visual mode, which is complicating things). See

[sage-support] Re: using cell server with moodle (problem with script balise)

2013-11-13 Thread mbuffat69
I follow the suggestion of Jason and remove the script tag div class=sage 1+2 /div and it works. By the way, in moodle the html editor has a raw mode. However as pointed by Stefan, as soon as I return to the visual mode, the editor add the [CDATA[ stuff around the script balise. As far as I

[sage-support] Re: using cell server with moodle (problem with script balise)

2013-11-13 Thread Jason Grout
On 11/13/13 2:49 PM, mbuffa...@gmail.com wrote: I follow the suggestion of Jason and remove the script tag div class=sage 1+2 /div and it works. By the way, in moodle the html editor has a raw mode. However as pointed by Stefan, as soon as I return to the visual mode, the editor add the [CDATA[

[sage-support] Re: using cell server with moodle (problem with script balise)

2013-11-13 Thread Jason Grout
On 11/13/13 1:43 PM, Stefan van Zwam wrote: I'm running into the same problem with Wordpress. When I switch their TinyMCE editor between Text and Visual modes, it will add in those tags. My solution is to edit only in Text mode (the Sage boxes are invisible anyway in Visual mode, which is

[sage-support] Re: using cell server with moodle (problem with script balise)

2013-11-13 Thread mbuffat69
Yes the html editor in moodle escape i.e. div class=sage if 12: print 'hi' /div is converted automatically div class=sageif 1lt;2: print 'hi' /div however the code in written with one line, i.e. I am unable to insert multi-lines using only div Moreover string enclosed with does nor

[sage-support] Re: using cell server with moodle (problem with script balise)

2013-11-13 Thread Jotace
I had the very same problem with Moodle2.0 My solution is not to wite an html document inside Moodle. Rather, what I do is write the .html file externally, with Kompozer, then in Moodle i upload that external file. I don'n know if this works if, for instance you want to tak profit of the

[sage-support] Re: using cell server with moodle (problem with script balise)

2013-11-12 Thread Jason Grout
On 11/12/13 3:59 PM, mbuffa...@gmail.com wrote: I am trying to insert sage cell inside moodle page, in order to use sage for online course. I found the idea behind sage cell and ipython wonderful for online course, but I have a problem. I am using moodle 2.4 and insert the html code from