aurelia-medium-editor
v0.1.12
Published
medium-editor plugin for Aurelia.
Downloads
12
Maintainers
Readme
aurelia-medium-editor
A wrapper around medium-editor for Aurelia.
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>