#6460: contentEditable cells
-------------------------+--------------------------------------------------
 Reporter:  mpatel       |       Owner:  boothby
     Type:  enhancement  |      Status:  new    
 Priority:  major        |   Milestone:         
Component:  notebook     |    Keywords:         
 Reviewer:               |      Author:         
   Merged:               |  
-------------------------+--------------------------------------------------

Comment(by mpatel):

 For what it's worth, I've attached an [attachment:graphed_ext.tbz2
 example] that launches Rado's graph editor in a new, potentially reusable
 window, from a notebook cell.  Suggested directions:

  * Put `graphed_ext.html` and `processing.editor.min.js` in
 `$SAGE_ROOT/local/notebook/javascript/`.  I haven't edited the enclosed
 [http://processingjs.org/reference Processing] library, but it may be
 different from Rado's latest.
  * Load `graphed.txt` as a worksheet.  The serialization code is from
 Rado's recent post about his elegant inline editor for the notebook.
  * Try, e.g., `g = graphs.CubeGraph(4)`, followed by `graph_editor(g,
 'g_mod')`, say.  A pop-up blocker may complain.  I just allowed pop-ups
 from `localhost`.
  * See, e.g., [http://www.w3schools.com/HTMLDOM/met_win_open.asp this
 link] for various window options.  To open the editor in a tab, check the
 browser settings for overrides and use `var win = window.open(url, name);`
 with the appropriate `url` and some `name`.  Different names will yield
 separate windows (or tabs).  The browser's security policy may prevent
 some actions, e.g., re-establishing client-side connections to reloaded
 parent worksheets.

 It may be better to make some server-side changes.  Again, this is just an
 example.

 A possible extension is the ability to keep a list of graphs in the new
 window and edit and export them in a random-access fashion --- a graph
 browser, perhaps.  Another is sharing an editor among multiple open
 worksheets.  The work on tearing out docstrings is somewhat related (cf.
 #6001).

 Feel free to ask questions and make suggestions, though I'm a bit
 !JavaScripted out just now...

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6460#comment:2>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to