[sage-devel] Re: tinymce

2009-07-03 Thread William Stein
On Sun, Jun 21, 2009 at 12:47 AM, Pat LeSmithe wrote: > > William Stein wrote: >> What about control-enter?   Can you make it so >>   control-enter = linebreak >>   shift-enter = submit >> ? > > Control-enter is bound to spliteval_cell.  To make control-shift-enter, > say, insert a line break, try

[sage-devel] Re: tinymce

2009-06-20 Thread Pat LeSmithe
William Stein wrote: > What about control-enter? Can you make it so > control-enter = linebreak > shift-enter = submit > ? Control-enter is bound to spliteval_cell. To make control-shift-enter, say, insert a line break, try augmenting notebook.py's tinyMCE.init()'s setup with some code ri

[sage-devel] Re: tinymce

2009-06-18 Thread William Stein
On Wed, Jun 17, 2009 at 4:49 PM, wrote: > William Stein wrote: >> >> Jason, >> >> Unfortunately, I find it highly highly frustrating in tinyMCE that I >> can't enter a newline (i.e., what shift enter did before you rebound >> it) without directly editing the html.  In my personal copy of Sage, >>

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-18 Thread Rob Beezer
Bill must have looked at my hand-crafted web pages, since he knows I have little design sense. I'm sticking to mathematics, don't worry. ;-) Strikes me there are two related ideas being discussed here. 1. How does a new user know/learn how to create a new cell (of either type)? Right now, a

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-18 Thread kcrisman
> > How about this: > > > If you are in a text cell: > >  * ctrl-; splits the text cell, puts in a new math cell, and focuses on > > the math cell. > > > If you are in a math cell: > >  * ctrl-; splits the math cell, focusing on the second math cell > >  * ctrl-shift-; splits the math cell, inser

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-18 Thread kcrisman
> > Similarly, current TinyMCE behavior does not seem to join two existing > > adjacent text cells together - which is not a bug, but just a little > > weird at times.  Say for instance you had a math cell between two text > > areas and you delete the math cell; should the text areas join or not >

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-18 Thread Bill Page
> > William Stein wrote: >> This could be implemented by having a button in the palette on the >> top to insert a new "math" cell. The cell itself could just be some >> special HTML (maybe with a comment) that gets post-processed >> by Sage and turned into an input cell. See the attached "Pict

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-18 Thread Jason Grout
William Stein wrote: > > That is a good idea. > > This could be implemented by having a button in the palette on the top to > insert > a new "math" cell. The cell itself could just be some special HTML > (maybe with a comment) that gets post-processed by Sage and turned > into an input cell.

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-18 Thread Bill Page
On Wed, Feb 18, 2009 at 4:21 PM, Jason Grout wrote: > > kcrisman wrote: > >> >> Also (this is now just wild speculation) would it ever be possible to >> make a new math cell *in the middle of a text cell*? That would be >> really awesome, let me tell you. Though perhaps impossible? > > Can you g

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-18 Thread Jason Grout
kcrisman wrote: > > Also (this is now just wild speculation) would it ever be possible to > make a new math cell *in the middle of a text cell*? That would be > really awesome, let me tell you. Though perhaps impossible? Can you give us a more specific use-case? You mean, you want to "split

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-18 Thread Bill Page
On Wed, Feb 18, 2009 at 12:03 PM, Jason Grout wrote: > > Bill Page wrote: >> >> What if the bar included "evaluate" as well? >> ___ >> |__ evaluate |_ new command _| new text _| > > > > A problem with this pro

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-18 Thread Jason Grout
Bill Page wrote: > On Wed, Feb 18, 2009 at 12:39 AM, Rob Beezer wrote: >> Sure! The best of both worlds? > > I do not consider this the "best" but rather a "lowest common > denominator" kind of thing. I quite dislike the evaluate links > scattered down the page, although I have seen many times t

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-18 Thread kcrisman
Not sure what I think about the various annotate ideas, though probably something like this should be available. It is actually quite important what you call it, because none of the names (new text, annotate, etc.) seems to quite characterize it. I don't have any better ideas, unfortunately. I

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-18 Thread mhampton
Its true, new users love the evaluate button. It would be nice to have an expert mode, or perhaps "elegant" mode, that turned that off. But for beginners, I like the idea of an "annotate" button on the right, opposite the evaluate button. -Marshall On Feb 18, 3:31 pm, Bill Page wrote: > On Wed

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-18 Thread Bill Page
On Wed, Feb 18, 2009 at 12:39 AM, Rob Beezer wrote: > > Sure! The best of both worlds? I do not consider this the "best" but rather a "lowest common denominator" kind of thing. I quite dislike the evaluate links scattered down the page, although I have seen many times that this is what almost ev

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-17 Thread Rob Beezer
Sure! The best of both worlds? This would put placement of the "new" function in the same place it always has been, for both code and text.And it would give the new user some idea of just what the blue bar is for anyway. Rather than "code," would "commands" make more sense to the new user w

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-17 Thread Jason Grout
Rob Beezer wrote: > On Mon, Feb 16, 2009 at 12:22 PM, William Stein wrote: > >> Any suggestions? > > I'm thinking about the new user, who (a) doesn't know at all that you > can add text (b) can't figure out why there are two colors for the > bars or (c) tries to type code into TinyMCE and can't

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-17 Thread William Stein
On Tue, Feb 17, 2009 at 8:27 PM, Rob Beezer wrote: > > On Mon, Feb 16, 2009 at 12:22 PM, William Stein wrote: > >> Any suggestions? > > I'm thinking about the new user, who (a) doesn't know at all that you > can add text (b) can't figure out why there are two colors for the > bars or (c) tries to

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-17 Thread Rob Beezer
On Mon, Feb 16, 2009 at 12:22 PM, William Stein wrote: > Any suggestions? I'm thinking about the new user, who (a) doesn't know at all that you can add text (b) can't figure out why there are two colors for the bars or (c) tries to type code into TinyMCE and can't get it to evaluate. What about

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-16 Thread Bill Page
On Mon, Feb 16, 2009 at 12:22 PM, William Stein wrote: > > On Mon, Feb 16, 2009 at 9:21 AM, Bill Page wrote: >> >> Shouldn't there be a more visible way - similar to what you do to >> create other new cells? >> > > Any suggestions? > What I was looking for was some king of highlighting as I hover

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-16 Thread Jason Grout
Luiz Felipe Martins wrote: > One little thing that might be even simpler to implement. > > It is not possible to click above a TinyMCE cell to add a new cell. Of > course, it is still possible to Ctrl-;, but sometimes I feel it would > be faster to just Shift-Click, since I have my hand on the mo

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-16 Thread Luiz Felipe Martins
One little thing that might be even simpler to implement. It is not possible to click above a TinyMCE cell to add a new cell. Of course, it is still possible to Ctrl-;, but sometimes I feel it would be faster to just Shift-Click, since I have my hand on the mouse anyway. On Mon, Feb 16, 2009 at

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-16 Thread William Stein
On Mon, Feb 16, 2009 at 9:21 AM, Bill Page wrote: > > I am sorry William, I must be especially dense today. After searching > for "shift click" at > > http://sagenb.org/help > > I found it! > > HTMLShift click between cells to create a new HTML cell. Double click > on existing HTML to edit it

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-16 Thread Bill Page
I am sorry William, I must be especially dense today. After searching for "shift click" at http://sagenb.org/help I found it! HTMLShift click between cells to create a new HTML cell. Double click on existing HTML to edit it. Use $...$ and $$...$$ to include typeset math in the HTML block.

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-16 Thread Jason Grout
William Stein wrote: > On Mon, Feb 16, 2009 at 8:59 AM, William Stein wrote: >> On Mon, Feb 16, 2009 at 8:54 AM, Bill Page >> wrote: >>> I really like TinyMCE but I have a "new user" question: >>> Double-clicking on some existing text in a worksheet works fine, but >>> how do I insert a new tex

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-16 Thread William Stein
On Mon, Feb 16, 2009 at 8:59 AM, William Stein wrote: > On Mon, Feb 16, 2009 at 8:54 AM, Bill Page wrote: >> >> I really like TinyMCE but I have a "new user" question: >> Double-clicking on some existing text in a worksheet works fine, but >> how do I insert a new text cell? Of course I can go t

[sage-devel] Re: TinyMCE in sage-3.3: How to insert a new text cell?

2009-02-16 Thread William Stein
On Mon, Feb 16, 2009 at 8:54 AM, Bill Page wrote: > > I really like TinyMCE but I have a "new user" question: > Double-clicking on some existing text in a worksheet works fine, but > how do I insert a new text cell? Of course I can go to the old raw > text Edit mode, but that seems SO clumsy now

[sage-devel] Re: tinymce tickets for 3.3

2009-02-03 Thread William Stein
On Tue, Feb 3, 2009 at 7:09 PM, Jason Grout wrote: > > William Stein wrote: >> On Tue, Feb 3, 2009 at 12:19 AM, wrote: >>> William, >>> >>> Could you (or Mike) review #5141 and #5143? #5141 is a one-line fix to make >>> sure that tinymce is disabled on published worksheets, while #5143 >>> imp

[sage-devel] Re: tinymce tickets for 3.3

2009-02-03 Thread Jason Grout
William Stein wrote: > On Tue, Feb 3, 2009 at 12:19 AM, wrote: >> William, >> >> Could you (or Mike) review #5141 and #5143? #5141 is a one-line fix to make >> sure that tinymce is disabled on published worksheets, while #5143 >> implements William's feature request of shift-enter submitting a

[sage-devel] Re: tinymce tickets for 3.3

2009-02-03 Thread mabshoff
On Feb 3, 5:36 pm, William Stein wrote: > On Tue, Feb 3, 2009 at 12:19 AM,   wrote: > > William, > > > Could you (or Mike) review #5141 and #5143?  #5141 is a one-line fix to make > > sure that tinymce is disabled on published worksheets, while #5143 > > implements William's feature request of

[sage-devel] Re: tinymce tickets for 3.3

2009-02-03 Thread William Stein
On Tue, Feb 3, 2009 at 12:19 AM, wrote: > William, > > Could you (or Mike) review #5141 and #5143? #5141 is a one-line fix to make > sure that tinymce is disabled on published worksheets, while #5143 > implements William's feature request of shift-enter submitting a tinyMCE > form. I also put

[sage-devel] Re: TinyMCE behavior on published notebooks

2009-01-30 Thread Jason Grout
Jason Grout wrote: > William Stein wrote: >> On Fri, Jan 30, 2009 at 12:29 PM, Peter wrote: >>> Hi, >>> >>> I really like the TinyMCE editor for textcells and think it will be >>> very useful for interactive course notes and student projects. >>> >>> I did notice that on 3.3.alpha1 TinyMCE is als

[sage-devel] Re: TinyMCE behavior on published notebooks

2009-01-30 Thread Jason Grout
William Stein wrote: > On Fri, Jan 30, 2009 at 12:29 PM, Peter wrote: >> Hi, >> >> I really like the TinyMCE editor for textcells and think it will be >> very useful for interactive course notes and student projects. >> >> I did notice that on 3.3.alpha1 TinyMCE is also invoked when I double- >>

[sage-devel] Re: TinyMCE behavior on published notebooks

2009-01-30 Thread William Stein
On Fri, Jan 30, 2009 at 12:29 PM, Peter wrote: > > Hi, > > I really like the TinyMCE editor for textcells and think it will be > very useful for interactive course notes and student projects. > > I did notice that on 3.3.alpha1 TinyMCE is also invoked when I double- > click on the text cell of a

[sage-devel] Re: tinymce

2009-01-30 Thread Jason Grout
William Stein wrote: > Hi Sage-devel (and mainly Jason Grout), > > OK, so TinyMCE totally rocks, and now I use it all the time. > > Question -- can we change it so pressing "shift-enter" is the same as > clicking "Save Changes". > This would make the UI much more consistent with the rest of the