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.

42 lines
747 B

3 years ago
  1. <template>
  2. <base-card
  3. :title="$t('annotation.guidelinePopupTitle')"
  4. :cancel-text="$t('generic.close')"
  5. @cancel="close"
  6. >
  7. <template #content>
  8. <viewer
  9. :initial-value="guidelineText"
  10. />
  11. </template>
  12. </base-card>
  13. </template>
  14. <script>
  15. import 'tui-editor/dist/tui-editor-contents.css'
  16. import 'highlight.js/styles/github.css'
  17. import { Viewer } from '@toast-ui/vue-editor'
  18. import BaseCard from '@/components/utils/BaseCard'
  19. import '@/assets/style/editor.css'
  20. export default {
  21. components: {
  22. Viewer,
  23. BaseCard
  24. },
  25. props: {
  26. guidelineText: {
  27. type: String,
  28. default: '',
  29. required: true
  30. }
  31. },
  32. methods: {
  33. close() {
  34. this.$emit('click:close')
  35. }
  36. }
  37. }
  38. </script>