Skip to content

featurist/hyperdom-medium-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Medium Editor for hyperdom

npm install hyperdom-medium-editor

Usage

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'],
      ...
    }
  });
}