Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

MeetehS/meditor

Repository files navigation

meditor

a pure editor

Demo Demo

Q&A

What is autosave? And how do you realized?

  1. Please read Auto Save(自动保存)案例和情景分析
  2. autosave after edit.

Why don't add code button to toolbar?

ToolBar is for those don't know Markdown, not developers.

Design

  1. Evertime when user go to the editor, it should be in the new article state, if user input, add a new article automatically, rather than open an old article, because this is a editor, user just want to write a new article, save to localStorage is just a functionality to save user's job when some accident happen, such as close the tab or browser crashed.

Develop

  1. Use the immutable only in reducers.
  2. user name + Action to name action, such as getArticlesAction, to difference between actions and common functions.

Environment of develop

  • macOS 10.12 beta
  • Node v6.3.0
  • npm v3.10.3