iceter
v0.0.10
Published
A editor base on browser rich text editor Api.
Downloads
2
Readme
A editor base on browser rich text editor Api.
State
No release version.
Todo list
- [x] toMarkdown
- [x] fromMarkdown
- [ ] code block type support
- [ ] code and link shortcut
Develop:
yarn install (or npm install)
// then
npm run dev
//see localhost:9213
Use:
install
npm install iceter
import (use babel)
import Iceter from 'iceter'
use
var editor = new Iceter({
el: '.edit'
})
editor.setContent('')
editor.getContent()
APIs:
insertImage
param:
- @param {string} url
example:
editor.insertImage(url)
insertUrl
param:
- @param {string} url
example:
editor.insertUrl(url)