quilljs2-rails 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.github/workflows/release.yml +36 -0
- data/.gitignore +9 -0
- data/.idea/misc.xml +4 -0
- data/.idea/modules.xml +8 -0
- data/.idea/quilljs-rails.iml +39 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/workspace.xml +636 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +125 -0
- data/Rakefile +10 -0
- data/app/assets/javascripts/quill.core.js +7908 -0
- data/app/assets/javascripts/quill.global.js +117 -0
- data/app/assets/javascripts/quill.min.js +14 -0
- data/app/assets/stylesheets/quill.bubble.css +872 -0
- data/app/assets/stylesheets/quill.core.css +378 -0
- data/app/assets/stylesheets/quill.snow.css +904 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/quilljs/rails/version.rb +6 -0
- data/lib/quilljs/rails.rb +10 -0
- data/quilljs-rails.gemspec +32 -0
- data/test/quilljs/functionality_test.rb +68 -0
- data/test/quilljs/rails_test.rb +16 -0
- data/test/test_helper.rb +4 -0
- metadata +117 -0
@@ -0,0 +1,378 @@
|
|
1
|
+
/*!
|
2
|
+
* Quill Editor v2.0.3
|
3
|
+
* https://quilljs.com/
|
4
|
+
* Copyright (c) 2014, Jason Chen
|
5
|
+
* Copyright (c) 2013, salesforce.com
|
6
|
+
*/
|
7
|
+
.ql-container {
|
8
|
+
box-sizing: border-box;
|
9
|
+
font-family: Helvetica, Arial, sans-serif;
|
10
|
+
font-size: 13px;
|
11
|
+
height: 100%;
|
12
|
+
margin: 0px;
|
13
|
+
position: relative;
|
14
|
+
}
|
15
|
+
.ql-container.ql-disabled .ql-tooltip {
|
16
|
+
visibility: hidden;
|
17
|
+
}
|
18
|
+
.ql-clipboard {
|
19
|
+
left: -100000px;
|
20
|
+
height: 1px;
|
21
|
+
overflow-y: hidden;
|
22
|
+
position: absolute;
|
23
|
+
top: 50%;
|
24
|
+
}
|
25
|
+
.ql-clipboard p {
|
26
|
+
margin: 0;
|
27
|
+
padding: 0;
|
28
|
+
}
|
29
|
+
.ql-editor {
|
30
|
+
box-sizing: border-box;
|
31
|
+
cursor: text;
|
32
|
+
line-height: 1.42;
|
33
|
+
height: 100%;
|
34
|
+
outline: none;
|
35
|
+
overflow-y: auto;
|
36
|
+
padding: 12px 15px;
|
37
|
+
tab-size: 4;
|
38
|
+
-moz-tab-size: 4;
|
39
|
+
text-align: left;
|
40
|
+
white-space: pre-wrap;
|
41
|
+
word-wrap: break-word;
|
42
|
+
}
|
43
|
+
.ql-editor p,
|
44
|
+
.ql-editor ol,
|
45
|
+
.ql-editor ul,
|
46
|
+
.ql-editor pre,
|
47
|
+
.ql-editor blockquote,
|
48
|
+
.ql-editor h1,
|
49
|
+
.ql-editor h2,
|
50
|
+
.ql-editor h3,
|
51
|
+
.ql-editor h4,
|
52
|
+
.ql-editor h5,
|
53
|
+
.ql-editor h6 {
|
54
|
+
margin: 0;
|
55
|
+
padding: 0;
|
56
|
+
counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
57
|
+
}
|
58
|
+
.ql-editor ol,
|
59
|
+
.ql-editor ul {
|
60
|
+
padding-left: 1.5em;
|
61
|
+
}
|
62
|
+
.ql-editor ol > li,
|
63
|
+
.ql-editor ul > li {
|
64
|
+
list-style-type: none;
|
65
|
+
}
|
66
|
+
.ql-editor ul > li::before {
|
67
|
+
content: '\25CF';
|
68
|
+
}
|
69
|
+
.ql-editor ul[data-checked=true],
|
70
|
+
.ql-editor ul[data-checked=false] {
|
71
|
+
pointer-events: none;
|
72
|
+
}
|
73
|
+
.ql-editor ul[data-checked=true] > li::before,
|
74
|
+
.ql-editor ul[data-checked=false] > li::before {
|
75
|
+
color: #777;
|
76
|
+
cursor: pointer;
|
77
|
+
pointer-events: all;
|
78
|
+
}
|
79
|
+
.ql-editor ul[data-checked=true] > li::before {
|
80
|
+
content: '\2611';
|
81
|
+
}
|
82
|
+
.ql-editor ul[data-checked=false] > li::before {
|
83
|
+
content: '\2610';
|
84
|
+
}
|
85
|
+
.ql-editor li::before {
|
86
|
+
display: inline-block;
|
87
|
+
margin-right: 0.3em;
|
88
|
+
text-align: right;
|
89
|
+
white-space: nowrap;
|
90
|
+
width: 1.2em;
|
91
|
+
}
|
92
|
+
.ql-editor li:not(.ql-direction-rtl)::before {
|
93
|
+
margin-left: -1.5em;
|
94
|
+
}
|
95
|
+
.ql-editor ol li,
|
96
|
+
.ql-editor ul li {
|
97
|
+
padding-left: 1.5em;
|
98
|
+
}
|
99
|
+
.ql-editor ol li {
|
100
|
+
counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
101
|
+
counter-increment: list-num;
|
102
|
+
}
|
103
|
+
.ql-editor ol li:before {
|
104
|
+
content: counter(list-num, decimal) '. ';
|
105
|
+
}
|
106
|
+
.ql-editor ol li.ql-indent-1 {
|
107
|
+
counter-increment: list-1;
|
108
|
+
}
|
109
|
+
.ql-editor ol li.ql-indent-1:before {
|
110
|
+
content: counter(list-1, lower-alpha) '. ';
|
111
|
+
}
|
112
|
+
.ql-editor ol li.ql-indent-1 {
|
113
|
+
counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
114
|
+
}
|
115
|
+
.ql-editor ol li.ql-indent-2 {
|
116
|
+
counter-increment: list-2;
|
117
|
+
}
|
118
|
+
.ql-editor ol li.ql-indent-2:before {
|
119
|
+
content: counter(list-2, lower-roman) '. ';
|
120
|
+
}
|
121
|
+
.ql-editor ol li.ql-indent-2 {
|
122
|
+
counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
123
|
+
}
|
124
|
+
.ql-editor ol li.ql-indent-3 {
|
125
|
+
counter-increment: list-3;
|
126
|
+
}
|
127
|
+
.ql-editor ol li.ql-indent-3:before {
|
128
|
+
content: counter(list-3, decimal) '. ';
|
129
|
+
}
|
130
|
+
.ql-editor ol li.ql-indent-3 {
|
131
|
+
counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;
|
132
|
+
}
|
133
|
+
.ql-editor ol li.ql-indent-4 {
|
134
|
+
counter-increment: list-4;
|
135
|
+
}
|
136
|
+
.ql-editor ol li.ql-indent-4:before {
|
137
|
+
content: counter(list-4, lower-alpha) '. ';
|
138
|
+
}
|
139
|
+
.ql-editor ol li.ql-indent-4 {
|
140
|
+
counter-reset: list-5 list-6 list-7 list-8 list-9;
|
141
|
+
}
|
142
|
+
.ql-editor ol li.ql-indent-5 {
|
143
|
+
counter-increment: list-5;
|
144
|
+
}
|
145
|
+
.ql-editor ol li.ql-indent-5:before {
|
146
|
+
content: counter(list-5, lower-roman) '. ';
|
147
|
+
}
|
148
|
+
.ql-editor ol li.ql-indent-5 {
|
149
|
+
counter-reset: list-6 list-7 list-8 list-9;
|
150
|
+
}
|
151
|
+
.ql-editor ol li.ql-indent-6 {
|
152
|
+
counter-increment: list-6;
|
153
|
+
}
|
154
|
+
.ql-editor ol li.ql-indent-6:before {
|
155
|
+
content: counter(list-6, decimal) '. ';
|
156
|
+
}
|
157
|
+
.ql-editor ol li.ql-indent-6 {
|
158
|
+
counter-reset: list-7 list-8 list-9;
|
159
|
+
}
|
160
|
+
.ql-editor ol li.ql-indent-7 {
|
161
|
+
counter-increment: list-7;
|
162
|
+
}
|
163
|
+
.ql-editor ol li.ql-indent-7:before {
|
164
|
+
content: counter(list-7, lower-alpha) '. ';
|
165
|
+
}
|
166
|
+
.ql-editor ol li.ql-indent-7 {
|
167
|
+
counter-reset: list-8 list-9;
|
168
|
+
}
|
169
|
+
.ql-editor ol li.ql-indent-8 {
|
170
|
+
counter-increment: list-8;
|
171
|
+
}
|
172
|
+
.ql-editor ol li.ql-indent-8:before {
|
173
|
+
content: counter(list-8, lower-roman) '. ';
|
174
|
+
}
|
175
|
+
.ql-editor ol li.ql-indent-8 {
|
176
|
+
counter-reset: list-9;
|
177
|
+
}
|
178
|
+
.ql-editor ol li.ql-indent-9 {
|
179
|
+
counter-increment: list-9;
|
180
|
+
}
|
181
|
+
.ql-editor ol li.ql-indent-9:before {
|
182
|
+
content: counter(list-9, decimal) '. ';
|
183
|
+
}
|
184
|
+
.ql-editor .ql-indent-1:not(.ql-direction-rtl) {
|
185
|
+
padding-left: 3em;
|
186
|
+
}
|
187
|
+
.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {
|
188
|
+
padding-left: 4.5em;
|
189
|
+
}
|
190
|
+
.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {
|
191
|
+
padding-right: 3em;
|
192
|
+
}
|
193
|
+
.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {
|
194
|
+
padding-right: 4.5em;
|
195
|
+
}
|
196
|
+
.ql-editor .ql-indent-2:not(.ql-direction-rtl) {
|
197
|
+
padding-left: 6em;
|
198
|
+
}
|
199
|
+
.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {
|
200
|
+
padding-left: 7.5em;
|
201
|
+
}
|
202
|
+
.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {
|
203
|
+
padding-right: 6em;
|
204
|
+
}
|
205
|
+
.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {
|
206
|
+
padding-right: 7.5em;
|
207
|
+
}
|
208
|
+
.ql-editor .ql-indent-3:not(.ql-direction-rtl) {
|
209
|
+
padding-left: 9em;
|
210
|
+
}
|
211
|
+
.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {
|
212
|
+
padding-left: 10.5em;
|
213
|
+
}
|
214
|
+
.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {
|
215
|
+
padding-right: 9em;
|
216
|
+
}
|
217
|
+
.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {
|
218
|
+
padding-right: 10.5em;
|
219
|
+
}
|
220
|
+
.ql-editor .ql-indent-4:not(.ql-direction-rtl) {
|
221
|
+
padding-left: 12em;
|
222
|
+
}
|
223
|
+
.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {
|
224
|
+
padding-left: 13.5em;
|
225
|
+
}
|
226
|
+
.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {
|
227
|
+
padding-right: 12em;
|
228
|
+
}
|
229
|
+
.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {
|
230
|
+
padding-right: 13.5em;
|
231
|
+
}
|
232
|
+
.ql-editor .ql-indent-5:not(.ql-direction-rtl) {
|
233
|
+
padding-left: 15em;
|
234
|
+
}
|
235
|
+
.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {
|
236
|
+
padding-left: 16.5em;
|
237
|
+
}
|
238
|
+
.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {
|
239
|
+
padding-right: 15em;
|
240
|
+
}
|
241
|
+
.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {
|
242
|
+
padding-right: 16.5em;
|
243
|
+
}
|
244
|
+
.ql-editor .ql-indent-6:not(.ql-direction-rtl) {
|
245
|
+
padding-left: 18em;
|
246
|
+
}
|
247
|
+
.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {
|
248
|
+
padding-left: 19.5em;
|
249
|
+
}
|
250
|
+
.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {
|
251
|
+
padding-right: 18em;
|
252
|
+
}
|
253
|
+
.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {
|
254
|
+
padding-right: 19.5em;
|
255
|
+
}
|
256
|
+
.ql-editor .ql-indent-7:not(.ql-direction-rtl) {
|
257
|
+
padding-left: 21em;
|
258
|
+
}
|
259
|
+
.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {
|
260
|
+
padding-left: 22.5em;
|
261
|
+
}
|
262
|
+
.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {
|
263
|
+
padding-right: 21em;
|
264
|
+
}
|
265
|
+
.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {
|
266
|
+
padding-right: 22.5em;
|
267
|
+
}
|
268
|
+
.ql-editor .ql-indent-8:not(.ql-direction-rtl) {
|
269
|
+
padding-left: 24em;
|
270
|
+
}
|
271
|
+
.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {
|
272
|
+
padding-left: 25.5em;
|
273
|
+
}
|
274
|
+
.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {
|
275
|
+
padding-right: 24em;
|
276
|
+
}
|
277
|
+
.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {
|
278
|
+
padding-right: 25.5em;
|
279
|
+
}
|
280
|
+
.ql-editor .ql-indent-9:not(.ql-direction-rtl) {
|
281
|
+
padding-left: 27em;
|
282
|
+
}
|
283
|
+
.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {
|
284
|
+
padding-left: 28.5em;
|
285
|
+
}
|
286
|
+
.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {
|
287
|
+
padding-right: 27em;
|
288
|
+
}
|
289
|
+
.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {
|
290
|
+
padding-right: 28.5em;
|
291
|
+
}
|
292
|
+
.ql-editor .ql-video {
|
293
|
+
display: block;
|
294
|
+
max-width: 100%;
|
295
|
+
}
|
296
|
+
.ql-editor .ql-video.ql-align-center {
|
297
|
+
margin: 0 auto;
|
298
|
+
}
|
299
|
+
.ql-editor .ql-video.ql-align-right {
|
300
|
+
margin: 0 0 0 auto;
|
301
|
+
}
|
302
|
+
.ql-editor .ql-bg-black {
|
303
|
+
background-color: #000;
|
304
|
+
}
|
305
|
+
.ql-editor .ql-bg-red {
|
306
|
+
background-color: #e60000;
|
307
|
+
}
|
308
|
+
.ql-editor .ql-bg-orange {
|
309
|
+
background-color: #f90;
|
310
|
+
}
|
311
|
+
.ql-editor .ql-bg-yellow {
|
312
|
+
background-color: #ff0;
|
313
|
+
}
|
314
|
+
.ql-editor .ql-bg-green {
|
315
|
+
background-color: #008a00;
|
316
|
+
}
|
317
|
+
.ql-editor .ql-bg-blue {
|
318
|
+
background-color: #06c;
|
319
|
+
}
|
320
|
+
.ql-editor .ql-bg-purple {
|
321
|
+
background-color: #93f;
|
322
|
+
}
|
323
|
+
.ql-editor .ql-color-white {
|
324
|
+
color: #fff;
|
325
|
+
}
|
326
|
+
.ql-editor .ql-color-red {
|
327
|
+
color: #e60000;
|
328
|
+
}
|
329
|
+
.ql-editor .ql-color-orange {
|
330
|
+
color: #f90;
|
331
|
+
}
|
332
|
+
.ql-editor .ql-color-yellow {
|
333
|
+
color: #ff0;
|
334
|
+
}
|
335
|
+
.ql-editor .ql-color-green {
|
336
|
+
color: #008a00;
|
337
|
+
}
|
338
|
+
.ql-editor .ql-color-blue {
|
339
|
+
color: #06c;
|
340
|
+
}
|
341
|
+
.ql-editor .ql-color-purple {
|
342
|
+
color: #93f;
|
343
|
+
}
|
344
|
+
.ql-editor .ql-font-serif {
|
345
|
+
font-family: Georgia, Times New Roman, serif;
|
346
|
+
}
|
347
|
+
.ql-editor .ql-font-monospace {
|
348
|
+
font-family: Monaco, Courier New, monospace;
|
349
|
+
}
|
350
|
+
.ql-editor .ql-size-small {
|
351
|
+
font-size: 0.75em;
|
352
|
+
}
|
353
|
+
.ql-editor .ql-size-large {
|
354
|
+
font-size: 1.5em;
|
355
|
+
}
|
356
|
+
.ql-editor .ql-size-huge {
|
357
|
+
font-size: 2.5em;
|
358
|
+
}
|
359
|
+
.ql-editor .ql-direction-rtl {
|
360
|
+
direction: rtl;
|
361
|
+
text-align: inherit;
|
362
|
+
}
|
363
|
+
.ql-editor .ql-align-center {
|
364
|
+
text-align: center;
|
365
|
+
}
|
366
|
+
.ql-editor .ql-align-justify {
|
367
|
+
text-align: justify;
|
368
|
+
}
|
369
|
+
.ql-editor .ql-align-right {
|
370
|
+
text-align: right;
|
371
|
+
}
|
372
|
+
.ql-editor.ql-blank::before {
|
373
|
+
color: rgba(0,0,0,0.6);
|
374
|
+
content: attr(data-placeholder);
|
375
|
+
font-style: italic;
|
376
|
+
pointer-events: none;
|
377
|
+
position: absolute;
|
378
|
+
}
|