Odyssey Content Editor
A content editor make with quill.js & vue.js made for odyssey.wildcodeschool.fr
🚧 Work in progress 🚧
Road Map
alpha1 :
alpha2 :
alpha3 :
alpha4 :
alpha4rc1
alpha5
alpha6
alpha7
alpha9.2
alpha10
alpha11
alpha12
alpha13
alpha14
alpha15
alpha16
TODO :
Table of contents
Installation
npm install --save odyssey-content-editor
or
yarn add odyssey-content-editor
Usage
Use as a specific components in a parent component:
// In a .vue compoenent
<script>
import Vue from 'vue'
import { ContentEditor } from 'odyssey-content-editor'
export default {
components: {
ContentEditor
}
}
</script>
<template lang="pug">
#parent
content-editor(@change="yourMethod")
</template>
Plugin Development
Installation
The first time you create or clone your plugin, you need to install the default dependencies:
npm install
or
yarn
Watch and compile
This will run webpack in watching mode and output the compiled files in the dist
folder.
npm run dev
Use it in another project
While developping, you can follow the install instructions of your plugin and link it into the project that uses it.
In the plugin folder:
npm link
In the other project folder:
npm link odyssey-content-editor
This will install it in the dependencies as a symlink, so that it gets any modifications made to the plugin.
Publish to npm
You may have to login to npm before, with npm adduser
. The plugin will be built in production mode before getting published on npm.
npm publish
Manual build
This will build the plugin into the dist
folder in production mode.
npm run build
License
MIT