techwraith / scotch

A really classy, dead simple, markdown based, blogging framework for node.js
MIT License
213 stars 24 forks source link

Implement Preview mode for drafts, allow inline comments on previews #18

Open techwraith opened 11 years ago

ben-ng commented 11 years ago

+1 for this, i actually have a post i would like to do this with right now.

how would inline comments on previews work? once the original post gets edited the comment positions will go out of sync.

techwraith commented 11 years ago

I think we'll need to introduce the concept of post versions at this point. The cool thing there though is we get version control as a side effect.

Basically, people can comment on a version, but they can't comment on a specific line. The UX will need a lot of work to get this to feel right.

I was thinking that you'd send a link out to people with a unique version ID, then they'd highlight a line, and once highlighted, a menu will show up. In that menu will be "add comment". After clicking "add comment" a form will show up on the left side of the article in line with the highlighted text. Once the comment is submitted, a link will be inserted in that version around the highlighted text, when that link is clicked, the comment will be shown on the left.