[sage-support] Re: Bad patch for unicode chars in TinyMCE?

2009-03-25 Thread ma...@mendelu.cz

On 22 Bře, 04:46, Jason Grout jason-s...@creativetrax.com wrote:

 As a hint to whoever wants to hunt this down if they get to it before
 me: the original text of the cell is stored in a parameter passed to
 tinymce when tinymce is initialized.  This is passed in the data
 attribute in the following code from cell.py (after the two patches are
 applied).


Has been fixed recently on http://trac.sagemath.org/sage_trac/ticket/5564
and works for me.
many many thanks. Robert
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Bad patch for unicode chars in TinyMCE?

2009-03-21 Thread Rob Beezer

Robert,

I'm not having this problem.  3.4 and Firefox 3.0.5 (ubuntu).

When I double-click to get back into TinyMCE, I do get a small grey
box with int x dx (no quotes, no dollar signs) and a small square
that closes the box, overlaid on the editor.  I've not not seen that
before, but it goes away politely and I can edit some more.

Rob

On Mar 21, 9:55 am, ma...@mendelu.cz ma...@mendelu.cz wrote:
 Hello, this is related to the thread 
 athttp://groups.google.cz/group/sage-support/browse_thread/thread/2a699...

 I think that installation 
 ofhttp://trac.sagemath.org/sage_trac/attachment/ticket/5564/trac_5564-2...
 causes that TinyMCE cannot be used to edit mathematical formulas

 If I enter $\int x dx$ in TinyMCE and exit the editor, I can see the
 picture representation for this formula formated by jsmath

 If I invoke TinyMCE again, i do not see TeX representation for the
 formula and hence, I cannot edit this formula. Can somebody confirm
 this bug, please? Thank you.

 Robert
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Bad patch for unicode chars in TinyMCE?

2009-03-21 Thread Jason Grout

ma...@mendelu.cz wrote:
 Hello, this is related to the thread at
 http://groups.google.cz/group/sage-support/browse_thread/thread/2a699360a3847bab
 
 I think that installation of
 http://trac.sagemath.org/sage_trac/attachment/ticket/5564/trac_5564-2.patch
 causes that TinyMCE cannot be used to edit mathematical formulas
 
 If I enter $\int x dx$ in TinyMCE and exit the editor, I can see the
 picture representation for this formula formated by jsmath
 
 If I invoke TinyMCE again, i do not see TeX representation for the
 formula and hence, I cannot edit this formula. Can somebody confirm
 this bug, please? Thank you.



Yes, it appears that something is very broken for me too with those two 
patches.  I see the same problem as you.

Jason


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Bad patch for unicode chars in TinyMCE?

2009-03-21 Thread Jason Grout

ma...@mendelu.cz wrote:
 Hello, this is related to the thread at
 http://groups.google.cz/group/sage-support/browse_thread/thread/2a699360a3847bab
 
 I think that installation of
 http://trac.sagemath.org/sage_trac/attachment/ticket/5564/trac_5564-2.patch
 causes that TinyMCE cannot be used to edit mathematical formulas
 
 If I enter $\int x dx$ in TinyMCE and exit the editor, I can see the
 picture representation for this formula formated by jsmath
 
 If I invoke TinyMCE again, i do not see TeX representation for the
 formula and hence, I cannot edit this formula. Can somebody confirm
 this bug, please? Thank you.


As a hint to whoever wants to hunt this down if they get to it before 
me: the original text of the cell is stored in a parameter passed to 
tinymce when tinymce is initialized.  This is passed in the data 
attribute in the following code from cell.py (after the two patches are 
applied).

 if JEDITABLE_TINYMCE and 
hasattr(self.worksheet(),'is_published') and no
t self.worksheet().is_published():
 s += 
script$(#cell_text_%s).unbind('dblclick').editable(funct
ion(value,settings) {
evaluate_text_cell_input(%s,value,settings);
return(value);
}, {
   tooltip   : ,
   placeholder : ,
//  type   : 'textarea',
   type   : 'mce',
   onblur : 'ignore',
   select : false,
   submit : 'Save changes',
   cancel : 'Cancel changes',
   event  : dblclick,
   style  : inherit,
   data   : %r
   });
/script%(self.__id,self.__id,self.__text)


My guess is that something is wrong with this data parameter being 
passed to the tinymce instance.  If the data parameter is not passed, 
then TinyMCE will use instead the html that is actually in the notebook, 
which would be the formatted jsmath version, which is what the symptoms 
indicate.

Jason


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---