jbt / markdown-editor

Live (Github-flavored) Markdown Editor
http://jbt.github.com/markdown-editor
ISC License
2.82k stars 643 forks source link

Request: bookmarks #54

Open legecha opened 8 years ago

legecha commented 8 years ago

I love that the URLs can be grabbed and you don't need to worry about saving or permissions or any of the malarkey, but I do feel that having a way to create a bookmark, some form of canonical link to a document (i.e. the URL will invariable change often) would be beneficial.

I thought I'd ask, firstly, would anyone else find this helpful and if so how would your preferred way be to go about it?

I guess the difficulty here is that this is very much client-side. I'm happy to have a crack at a pull request but I'm sure there are others with decent ideas on how we could go about this, if indeed it's a feature other people would also like?

jbt commented 8 years ago

Some of this touches on what was mentioned in #52 - I'd love to have something like this but it'd probably require a storage backend of some sort (if you want URLs to be shareable), and I'm not really keen on (for example) opening up an Amazon S3 bucket of my own for anyone to store whatever they like.

So I'm totally open to any suggestions on ways that this could be done, because I'm kinda out of ideas myself.

thorsummoner commented 8 years ago

Didn't someone suggest posting the content on a github gist as a form of saving it? Use the currently logged in github account, and it will already render markdown. It would be convenient if there was similarly a way to load a markdown gist from URL but w/e On Apr 21, 2016 7:24 AM, "James Taylor" notifications@github.com wrote:

Some of this touches on what was mentioned in #52 https://github.com/jbt/markdown-editor/issues/52 - I'd love to have something like this but it'd probably require a storage backend of some sort (if you want URLs to be shareable), and I'm not really keen on (for example) opening up an Amazon S3 bucket of my own for anyone to store whatever they like.

So I'm totally open to any suggestions on ways that this could be done, because I'm kinda out of ideas myself.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/jbt/markdown-editor/issues/54#issuecomment-212940779

thorsummoner commented 8 years ago

Considering that, getting the content of any markdown document from any file in any public or authenticated github repo or gist, and similarly pushing updates back or to a new gist is something I've done before from python, it should be possible to do the interfacing on JavaScript as well, it can be a bit tedious though

legecha commented 8 years ago

Would that require it to be a) on GitHub b) public? I'm not against the idea, just thinking of scope for different uses. For instance I popped it on our dev server to use for note taking for devs but files are seldom final so hard to share, hence the constantly synced shortened URL suggestion

aero31aero commented 8 years ago

Perhaps an export to Dropbox or something? I'm working on adding a menu-bar at the bottom of the editor for exposing more functionality to the users. Can try adding that as well.

aero31aero commented 7 years ago

Update: I added in browser storage in my fork: http://rohitt.me/markdown-editor/

Due to inconsistencies in file structure created overt-time(basically, separation of html,css and js), a PR won't work. Here's the commit:

https://github.com/aero31aero/markdown-editor/commit/8bd0a00bc654af3ea4443d24e9df4bba00bd4a15