Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 709 Bytes

Readme.md

File metadata and controls

41 lines (26 loc) · 709 Bytes

ed

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.

Installation

Install with component(1):

$ component install lepture/ed

API

var ed = require('ed')
ed(document.querySelectory('#editor'), {
  path: '/upload'
})

Options

All options are related to image uploading.

  1. path: upload url path
  2. headers: extra headers for your image server
  3. data: extra body data for your image server

.value()

var html = ed.value()

Get sanitized html of the content.

License

MIT