egoist
5/23/2016 - 2:11 PM

vue-editor.vue

<style src="vue-editor/utils/editor-default-style.css"></style>

<template>
  <app>
    <Editor>
      <EditorInput :text="text"></EditorInput>
      <EditorPreview></EditorPreview>
    </Editor>
  </app>

</template>

<script>
  import {Editor, EditorInput, EditorPreview} from 'vue-editor'

  export default {
    data() {
      return {
        text: ''
      }
    },
    components: {
      Editor,
      EditorInput,
      EditorPreview
    }
  }
</script>