You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
940 B

  1. <template>
  2. <v-content>
  3. <v-container
  4. fluid
  5. fill-height
  6. >
  7. <v-layout
  8. justify-center
  9. >
  10. <v-flex fill-height>
  11. <editor
  12. v-model="editorText"
  13. :options="editorOptions"
  14. :visible="editorVisible"
  15. preview-style="vertical"
  16. height="inherit"
  17. />
  18. </v-flex>
  19. </v-layout>
  20. </v-container>
  21. </v-content>
  22. </template>
  23. <script>
  24. import 'tui-editor/dist/tui-editor.css'
  25. import 'tui-editor/dist/tui-editor-contents.css'
  26. import 'codemirror/lib/codemirror.css'
  27. import { Editor } from '@toast-ui/vue-editor'
  28. export default {
  29. layout: 'project',
  30. components: {
  31. Editor
  32. },
  33. data() {
  34. return {
  35. editorText: 'Write annotation guideline.',
  36. editorOptions: {
  37. },
  38. editorVisible: true
  39. }
  40. }
  41. }
  42. </script>
  43. <style>
  44. .te-md-container .CodeMirror, .tui-editor-contents {
  45. font-size: 20px;
  46. }
  47. </style>