A simple yet functional editor without configuration. WIP
I am sorry that you can't customize anything! And you will never be able to customize anything. I won't add any more buttons on the toolbar.
Install with component(1):
$ component install lepture/ed
var ed = require('ed')
ed(document.querySelectory('#editor'), {
path: '/upload'
})
All options are related to image uploading.
- path: upload url path
- headers: extra headers for your image server
- data: extra body data for your image server
var html = ed.value()
Get sanitized html of the content.
MIT