Awesome Open Source
Awesome Open Source

aurelia-medium-editor

A wrapper around medium-editor for Aurelia.

NPM

Usage with aurelia-cli

npm i -S aurelia-medium-editor
// aurelia.json

{
    "name": "aurelia-medium-editor",
    "path": "../node_modules/aurelia-medium-editor/dist",
    "main": "index",
    "resources": [
        "medium-editor.css",
        "themes/default.css"
    ]
}
// main.js

aurelia.use
    .plugin('aurelia-medium-editor', {/* medium-editor options */});
<template>
    <require from="aurelia-medium-editor/medium-editor.css"></require>
    <require from="aurelia-medium-editor/themes/default.css"></require>

    <medium-editor content.bind="message"></medium-editor>
    <!-- options.bind="{medium-editor options}" to override the options for a particular instance -->
    <medium-editor
        content.bind="message"
        options.bind="{disableEditing: true}"></medium-editor>
</template>
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,072,185
Aurelia (947
Medium Editor (83
Aurelia Plugins (37