Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 392 Bytes

File metadata and controls

22 lines (17 loc) · 392 Bytes

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