-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
70 lines (65 loc) · 3.29 KB
/
index.html
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue WYSIWYG - A simple WYSIWYG editor for Vue.js by MYCURE</title>
<meta description="Simple WYSIWYG editor for Vue.js">
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
</head>
<body>
<div id="app">
<v-app>
<v-app-bar dark class="elevation-1" color="#0099cc" app>
<h2 id="app-bar-title">WYSIWYG editor for Vue.js</h2>
<v-spacer></v-spacer>
<v-btn large text href="https://github.com/mycurelabs/wysiwyg">Github</v-btn>
</v-app-bar>
<v-content>
<v-container>
<v-row>
<v-col cols="12" sm="12" md="6">
<v-card height="100%">
<v-card-text>
<v-row>
<v-col cols="12" sm="12">
<mc-wysiwyg v-model="html" :height="450"></mc-wysiwyg>
</v-col>
</v-row>
</v-card-text>
</v-card>
</v-col>
<v-col cols="12" sm="12" md="6">
<v-card height="100%">
<v-card-text>
<div v-html="html"></div>
</v-card-text>
</v-card>
</v-col>
</v-row>
</v-container>
</v-content>
</v-app>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.js"></script>
<script src="./dist/mc-wysiwyg.js"></script>
<script>
Vue.use(McWysiwyg.default);
new Vue({
el: '#app',
vuetify: new Vuetify(),
data () {
return {
html: '<h1 style="text-align: center;">Hello World!</h1><div><br></div><div><a href="https://mycure.md" style="font-size: 0.875rem; letter-spacing: 0.00714286em; background-color: rgb(255, 255, 255);">MYCURE</a> is the most complete clinic management system in the Philippines!</div><div><br></div><div>It works <b>offline</b> too! With the help of our proprietary technology <i><b>Syncbase.</b></i></div><div><br></div><div>Look at these features:</div><div><ol><li>Electronic Medical Record</li><li>Billing</li><li>Registration and Queueing</li><li>Laboratory and Imaging Systems</li><li>Materials Management</li><li>Reports and Analytics</li></ol><div><br></div></div><div><u>Table</u></div><div><table width="100%" style="border-collapse: collapse; border: 1px solid lightgrey;"> <tbody> <tr><td style="border: 1px solid lightgrey; padding: 2px;">Foo</td><td style="border: 1px solid lightgrey; padding: 2px;">Bar</td></tr><tr><td style="border: 1px solid lightgrey; padding: 2px;">Fizz</td><td style="border: 1px solid lightgrey; padding: 2px;">Bazz</td></tr> </tbody> </table></div><div><br></div>',
showDialog: false
};
}
});
</script>
</body>
</html>