https://github.com/featurist/hyperdom-medium-editor
medium-editor for hyperdom
https://github.com/featurist/hyperdom-medium-editor
Last synced: 4 months ago
JSON representation
medium-editor for hyperdom
- Host: GitHub
- URL: https://github.com/featurist/hyperdom-medium-editor
- Owner: featurist
- Created: 2015-04-22T10:24:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-06T16:50:47.000Z (about 9 years ago)
- Last Synced: 2025-03-04T18:08:56.358Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Medium Editor for hyperdom
npm install hyperdom-medium-editor
## Usage
```js
var mediumEditor = require('hyperdom-medium-editor');
function render(model) {
return mediumEditor({
class: 'my-class',
binding: [model, 'html'],
mediumOptions: {
...
buttons: ['bold', 'italic', 'header1', 'header2', 'unorderedlist', 'orderedlist'],
...
}
});
}
```