-
Notifications
You must be signed in to change notification settings - Fork 50
/
demo.html
62 lines (53 loc) · 1.38 KB
/
demo.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
<html>
<head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/quill/1.3.4/quill.js"></script>
<script type="text/javascript" src="dist/quill-blot-formatter.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/quill/1.3.4/quill.snow.min.css">
<style>
html {
height: 100%;
}
body {
margin: 0;
height: 100%;
}
#scrolling-container {
height: 100%;
min-height: 100%;
overflow-y: auto;
}
#quill-container {
height: auto;
min-height: 100%;
padding: 20px;
}
#quill-container .ql-editor {
overflow-y: visible;
height: auto;
}
</style>
</head>
<body>
<div id="scrolling-container">
<div id="quill-container">
<p>Hi! Here is an image...</p>
<p><img src="https://kittenrescue.org/wp-content/uploads/2017/03/KittenRescue_KittenCareHandbook.jpg" /></p>
<p>A Video!</p>
<p><iframe class="ql-video" frameborder="0" allowfullscreen="true" src="https://www.youtube.com/embed/rg6CiPI6h2g" height="196" width="391"></iframe></p>
</div>
</div>
<script>
Quill.register({
'modules/blotFormatter': QuillBlotFormatter.default,
})
const quill = new Quill('#quill-container', {
theme: 'snow',
scrollingContainer: '#scrolling-container',
modules: {
blotFormatter: {
}
}
});
</script>
</body>
</html>