<template>
  <div class="basic-editor-view" v-textarea="html"></div>
</template>

<script>
import { computed } from 'vue'
import { formInputViewProps } from '../../form-input-props'
import textareaDirectives from '../../../directives/textarea'
import './index.less'
export default {
  props: formInputViewProps,
  directives: {
    [textareaDirectives.name]: textareaDirectives
  },
  setup (props) {
    const html = computed(() => props.modelValue)
    return { html }
  }
}

</script>
