Medium Editor with Insert plugin
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});