Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A couple of years ago I wrote something similar (runs offline): http://web.student.tuwien.ac.at/~e0427417/outliner/outliner.... https://bitbucket.org/panzi/outliner/

It never worked with IE (I used addEventListener) and I think is buggy now even in Chrome/Firefox. But at one point it had D'n'D support (of lines within the outliner and dropping of files from your file system), common keyboard edit methods (Shift+Arrow keys to select things, Ctrl+X/C/V, Tab, Shift+Tab, etc.), and Undo/Redo.

From today's POV the code is a bit horrible. The Undo/Redo code should be written completely differently (so it can be serialized) and it all should be rewritten with jQuery or something like that (it's plain JavaScript).

About saving/downloading files generated in JavaScript I wrote something here (might not be up to date anymore; e.g. see the "update" at the very end): http://hackworthy.blogspot.co.at/2012/05/savedownload-data-g... Last time I checked this pure JavaScript code could save on more browsers than FileSaver.js, but that was at least >1 year ago.



thanks for the links.. i got some inspiration from ur design and will take a deep look at the code...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: