Hi everyone, There was another request on sage-edu for a nice way to edit text cells in the notebook. Patches which enable a very nice in-place wysiwyg editor for text cells are sitting on trac waiting to be reviewed. Some people have reviewed them and found them to work well. I'm not sure how much review is needed before they pass the test and are merged (the patches touch a lot of notebook and javascript code). If anyone can test them, I'm pleading for more reviews (at least, I think that's the stage they are stuck at now). I believe the main concerns are making sure that the patches work on a variety of platforms/browsers. Another concern that has been expressed is a review of the javascript code (for example, the notebook AJAX communication code was replaced with jquery function calls).
Instructions for applying the patches are below and at the bottom of the ticket at http://trac.sagemath.org/sage_trac/ticket/4705. Note that some of these tickets have cleaned-up spkgs from mabshoff (listed at the bottom of the relevant ticket) that should be tested instead of the spkgs listed in the email below. Thanks, Jason Forwarded message from sage-edu: Luiz Felipe Martins wrote: > > Here is a basic question: how to enter the HTML text between cells? Is > > there a handy way to do it? The only thing I could figure out is to > > jump back and forth from "Worksheet" to "Edit". > > > > (I also saw the LaTeX-Sage converter, but still have to experiment with it.) > > There is a patch under review that enables you to shift-click on the new-cell bar and it will create an in-place wysiwyg editor (TinyMCE, see http://tinymce.moxiecode.com/examples/full.php). You can edit the html text in-place and it feels just like a normal word processor (i.e., you don't see the html code). After saving changes, you are then able to edit the text in-place by double-clicking on the text. If you would like to apply the patch and help review it, the instructions are at the bottom of http://trac.sagemath.org/sage_trac/ticket/4705. For your convenience, I've copied them below. I think the main holdup of the patches is someone reviewing them. We need to make sure that these changes work on a wide variety of platforms well. Thanks, Jason Apply the following patches from 4674, 3767, 4704, and 4705, in order: jsmath-spkg.patch jquery-and-friends-spkg.2.patch jquery-javascript-cleanup.patch tinymce-editable.patch safari-fix.patch Install the following packages from the above tickets. You may have to do ./sage -f <spkg URL> to force an installation if you've already installed an spkg. http://sage.math.washington.edu/home/jason/notebook/jquery-1.2.6.spkg http://sage.math.washington.edu/home/jason/notebook/jqueryui-1.6r807svn.spkg http://sage.math.washington.edu/home/jason/notebook/jsmath-3.6a.spkg http://sage.math.washington.edu/home/jason/notebook/tinyMCE-3.2.0.2.spkg Optionally, you can also install the jsmath image fonts by installing: http://sage.math.washington.edu/home/jason/notebook/jsmath-image-fonts-1.3p0.spkg Now rebuild sage by starting sage with "sage -br" Now you should be able to shift-click on a new cell bar to create a text cell using tinyMCE. You should also be able to double-click on an existing text cell to edit it in-place. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---