| 1 |
<template> |
| 2 |
<div id="app"> |
| 3 |
<h1>Testing IvyEditor</h1> |
| 4 |
|
| 5 |
<IvyEditor v-model="editorContent" /> |
| 6 |
</div> |
| 7 |
</template> |
| 8 |
|
| 9 |
<script setup lang="ts"> |
| 10 |
import { ref } from 'vue' |
| 11 |
import IvyEditor from '@/views/_components/html-editor/IvyEditor.vue' |
| 12 |
|
| 13 |
const editorContent = ref('<p>Start typing...</p>') |
| 14 |
</script> |
| 15 |
|
| 16 |
<style scoped> |
| 17 |
#app { |
| 18 |
font-family: Avenir, Helvetica, Arial, sans-serif; |
| 19 |
padding: 20px; |
| 20 |
} |
| 21 |
|
| 22 |
h1 { |
| 23 |
font-size: 2rem; |
| 24 |
margin-bottom: 20px; |
| 25 |
} |
| 26 |
|
| 27 |
h2 { |
| 28 |
font-size: 1.5rem; |
| 29 |
margin-top: 20px; |
| 30 |
} |
| 31 |
</style> |
| 32 |
|