/
App.vue
43 lines (40 loc) · 944 Bytes
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<template>
<div id="app">
<h1>Editor</h1>
<v-quill-editor v-model="htmlData" :imageUploader="imageUploader" />
<h1>Viewer</h1>
<v-quill-viewer :data="htmlData" />
</div>
</template>
<script>
export default {
name: "App",
data() {
return {
htmlData: "",
imageUploader: {
upload: (file) => {
console.log(file);
return new Promise((resolve) => {
setTimeout(() => {
resolve(
"https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/close-up-of-cat-wearing-sunglasses-while-sitting-royalty-free-image-1571755145.jpg"
);
}, 1000);
});
},
},
};
},
};
</script>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>