asad:medium-editor

v0.0.1Published 8 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Medium Editor with Insert plugin

  • Medium Editor: here
  • Insert Plugin: here

This plugin uses dynamic imports, and as such, it needs Meteor 1.5 or later.

Usage

To use the editor, import it, and initialize the editor in the callback. The package places MediumEditor on the window.

1import("meteor/asad:medium-editor").then(function () {
2  var editor = new MediumEditor('#session-description', {
3    placeholder: {
4      text: 'Say something amazing',
5      hideOnClick: true
6    },
7    toolbar: {
8      buttons: ["bold", "italic", "h3", "underline", "orderedlist", "unorderedlist", "anchor"]
9    }
10  });
11  $('#session-description').mediumInsert({
12    editor: editor
13  });
14});