This repository was archived by the owner on Apr 30, 2020. It is now read-only.
Open
Conversation
- saves page content to localStorage when: 1. focus is blurred on code-mirror 2. user types enter - displays message box to user when there is unapplied content: 1. at current revision (on pageview), link redirects to edit page 2. at current revision (on editview), link swaps content to saved cache - lots of spaghetti
- think of when it was saved from another browser
- displays time elapsed since cache saved.
- need to add 'current content' to view page - add `article textarea[name="body"]` and hide it
Owner
|
딱 좋은데요, 지금 한참 편집기 쪽을 고치는 중이라 이거 좀 있다가 합칠게요 ^^ 감사합니다! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
더 이상 '글 쓰다 날렸어요 엉엉~' 하는 피해자를 막기 위해 캐쉬 기능을 넣었습니다.
사용자가 작성 중일 때 localStorage에 저장, submit 하면 지움
만약에 submit 안 하고 창을 닫아서 남아 있게 되면, 사용자한테 알려줌
사용자는 apply 를 누르면 내용을 넣을 수 있다. (덮어쓰기)
기본적인 기능은 이러한데, 기타 잡다한 기능도 추가했습니다:
<textarea name="body">추가.infobox추가 및 CSS발로 짜서 코드가 좀 지저분하긴 한데, 이런 기능을 위한 토론의 장이 되었으면 합니다.