Skip to content

Markdown Editor V2 (Support Vim & Emacs Mode) For Leanote Web & Leanote Desktop App

Notifications You must be signed in to change notification settings

leanote/markdown-editor-v2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown Editor For Leanote Web & Desktop App

Leanote's Markdown Editor originally forked from Stackedit-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

  • Use Ace Editor as main editor
  • Support Vim & Emacs mode

Branches

Build

Please install node and gulp firstly.

> gulp # build & minify res-min/main-v2.js, res-min/main-v2.min.js

Local Debug

> node server.js

See: http://localhost:3001/editor.html

Integrated With Leanote Desktop App

copy res-min/main-v2.js & res-min/main-v2.min.js to leanote-dekstop-app's path /public/md/


  • 使用Ace编辑器作为主要的编辑器
  • 支持Vim和Emacs编辑模式

构建

确保在此之前安装了node, gulp

> gulp # 生成 res-min/main-v2.js 和 res-min/main-v2.min.js

本地调试

> node server.js

访问: http://localhost:3001/editor.html

Leanote 桌面端使用本 Markdown v2 编辑器

res-min/main-v2.min.js 复制到desktop-app /public/md/

与Web的不同

  • 将res/libs目录移到res/public下
  • main.js libs的路径前加public
  • index.html ace路径前加res/public/
  • core.js 插入图片
  • core.js 打开Markdown帮助
  • raphael eve问题

About

Markdown Editor V2 (Support Vim & Emacs Mode) For Leanote Web & Leanote Desktop App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published