https://github.com/leanote/markdown-editor-v2
Markdown Editor V2 (Support Vim & Emacs Mode) For Leanote Web & Leanote Desktop App
https://github.com/leanote/markdown-editor-v2
Last synced: 11 months ago
JSON representation
Markdown Editor V2 (Support Vim & Emacs Mode) For Leanote Web & Leanote Desktop App
- Host: GitHub
- URL: https://github.com/leanote/markdown-editor-v2
- Owner: leanote
- Created: 2015-11-18T06:19:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-28T06:43:57.000Z (about 8 years ago)
- Last Synced: 2025-04-10T02:07:36.933Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 6.12 MB
- Stars: 113
- Watchers: 9
- Forks: 88
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Markdown Editor For Leanote Web & Desktop App
Leanote's Markdown Editor originally forked from [Stackedit](https://github.com/benweet/stackedit)-[v3.1.14](https://github.com/benweet/stackedit/releases/tag/v3.1.14). The Stackedit source is under Apache License (http://www.apache.org/licenses/LICENSE-2.0) and the code updated by Leanote is under GPL v2.
## Difference with [Leanote-Markdown-Editor](https://github.com/leanote/markdown-editor)
* Use Ace Editor as main editor
* Support Vim & Emacs mode
## Branches
* [master](https://github.com/leanote/desktop-app-v2) Markdown Editor v2 For [Leanote](https://github.com/leanote/leanote)
* [desktop-app](https://github.com/leanote/markdown-editor-v2/tree/desktop-app) Markdown Editor v2 For [Leanote Desktop App](https://github.com/leanote/desktop-app)
## Build
Please install `node` and `gulp` firstly.
```
> gulp # build & minify res-min/main-v2.js (https://github.com/leanote/leanote/blob/master/public/dist/main-v2.js), res-min/main-v2.min.js (https://github.com/leanote/leanote/blob/master/public/dist/main-v2.min.js)
```
## Local Debug
```
> node server.js
```
See: http://localhost:3001/editor.html

## Integrated With Leanote
Copy `res-min/main-v2.min.js` to leanote's path `/public/dist/`.
Update node-dev.html with:
```html
initPage();
window.require = {
baseUrl: '/public',
};