MediumEditor List
It is simple list extension with "Add new paragraph" option for MediumEditor.
Install
You can install manually or either by using npm:
npm install medium-editor-list
Demo page
Usage
MediumEditor List
Options
Options to customize medium-editor-list are passed as the argument of the MediumEditor options. Example:
var editor = document toolbar: buttons: 'bold' 'italic' 'underline' 'list-extension' extensions: 'list-extension': mediumEditorList: newParagraphTemplate: '<li>...</li>' buttonTemplate: '<b>List</b>' addParagraphTemplate: 'Add new paragraph' isEditable: true ;
- newParagraphTemplate - template for new paragraph adding by "Add new Paragraph" button
- buttonTemplate - toolbar button template
- addParagraphTemplate - "Add new Paragraph" button template
- isEditable - if this flag is set to false Add new Paragraph button will not be display.
How to run example page?
Clone repository and:
npm install
gulp
License
https://github.com/mkawczynski07/medium-editor-list/blob/master/LICENSE.md