forked from kensnyder/quill-image-resize-module
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdemo.html
72 lines (68 loc) · 2.5 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
63
64
65
66
67
68
69
70
71
72
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Quill Image Resizor Module Demo</title>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/quill/2.0.2/quill.min.js"
integrity="sha512-1nmY9t9/Iq3JU1fGf0OpNCn6uXMmwC1XYX9a6547vnfcjCY1KvU9TE5e8jHQvXBoEH7hcKLIbbOjneZ8HCeNLA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/quill/2.0.2/quill.snow.min.css"
integrity="sha512-UmV2ARg2MsY8TysMjhJvXSQHYgiYSVPS5ULXZCsTP3RgiMmBJhf8qP93vEyJgYuGt3u9V6wem73b11/Y8GVcOg=="
crossorigin="anonymous"
referrerpolicy="no-referrer" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/quill/2.0.2/quill.bubble.min.css"
integrity="sha512-/7xGl11n/6f/vbRmITKPWT3I0xFG9hExxOoBjabIQDyXi9lGai/OM8QYUBZp/asaRfIw3Ie/i61i50HjDRXnGg=="
crossorigin="anonymous"
referrerpolicy="no-referrer" />
<script type="module" src="./dist/ImageResizor.js"></script>
</head>
<body>
<h1>Quill Image Resize Module Demo</h1>
<div id="editor" style="max-height: 500px; overflow: auto">
<p>Click on the Image Below to resize</p>
<p>
<img
src="https://cloud.githubusercontent.com/assets/2264672/20601381/a51753d4-b258-11e6-92c2-1d79efa5bede.png" />
</p>
<p>Some initial <strong>bold</strong> text</p>
<p>
<img
src="https://cloud.githubusercontent.com/assets/2264672/20601381/a51753d4-b258-11e6-92c2-1d79efa5bede.png" />
</p>
</div>
<div style="border: 1px solid #ccc; margin-top: 16px" id="editor-bubble" style="max-height: 500px; overflow: auto">
<p>Click on the Image Below to resize</p>
<p>
<img
src="https://cloud.githubusercontent.com/assets/2264672/20601381/a51753d4-b258-11e6-92c2-1d79efa5bede.png" />
</p>
<p>Some initial <strong>bold</strong> text</p>
<p>
<img
src="https://cloud.githubusercontent.com/assets/2264672/20601381/a51753d4-b258-11e6-92c2-1d79efa5bede.png" />
</p>
</div>
<script defer>
document.addEventListener('DOMContentLoaded', () => {
const quill = new Quill('#editor', {
theme: 'snow',
modules: {
imageResizor: {}
}
})
const quillBubble = new Quill('#editor-bubble', {
theme: 'bubble',
modules: {
imageResizor: {}
}
})
})
</script>
</body>
</html>