An extension for medium editor which auto creates list.
Switch branches/tags
Nothing to show
Clone or download
varun-raj Merge pull request #9 from neyaoz/master
A minor bug has been fixed.
Latest commit 1ccf73a Apr 21, 2018

Autolist Extension for Medium Editor

Simple implementation


bower install medium-editor-autolist --save

Import the javascript

<script src="bower_components/medium-editor/dist/js/medium-editor.js"></script>
<script src="/bower_components/medium-editor-autolist/dist/autolist.js"></script>

Add the extension

var autolist = new AutoList();
var editor = new MediumEditor('.editable', {
    buttonLabels: 'fontawesome',
    extensions: {
        'autolist': autolist
    toolbar: {
        buttons: ['h1', 'h2', 'bold', 'italic', 'quote', 'pre', 'unorderedlist','orderedlist']