quilljs-rails 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/workspace.xml +108 -106
- data/README.md +87 -8
- data/app/assets/javascripts/quill.global.js +2 -2
- data/lib/quilljs/rails/version.rb +1 -1
- data/quilljs-rails-0.0.2.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b07fb7f037b0bf8e1ce46ad7f52e183d0a093657
|
4
|
+
data.tar.gz: 43c739aaf437a445c20f304f87b2c6be12b47169
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e814243204792a2cb55431f696f100ae987da0ae380a2c30bcd3422e0852d1df651c39734855191994b67dcb93239da6ce6b0104e79a6c1c244e0d3c269d217f
|
7
|
+
data.tar.gz: 9e5d693b2073b7fe7b9179a70db8ca86e54a4e2b182224d874e7bb452fd9b4ac6197bac189fa7616a20b4f1f6402ce8d8d6ef13e5233c5fd4ed4cba39beb033f
|
data/.idea/workspace.xml
CHANGED
@@ -19,18 +19,20 @@
|
|
19
19
|
<entry file="file://$PROJECT_DIR$/quilljs-rails.gemspec">
|
20
20
|
<provider selected="true" editor-type-id="text-editor">
|
21
21
|
<state relative-caret-position="324">
|
22
|
-
<caret line="18" column="30" lean-forward="
|
22
|
+
<caret line="18" column="30" lean-forward="false" selection-start-line="18" selection-start-column="30" selection-end-line="18" selection-end-column="30" />
|
23
23
|
<folding />
|
24
24
|
</state>
|
25
25
|
</provider>
|
26
26
|
</entry>
|
27
27
|
</file>
|
28
|
-
<file leaf-file-name="quill.min.js" pinned="false" current-in-tab="
|
28
|
+
<file leaf-file-name="quill.min.js" pinned="false" current-in-tab="false">
|
29
29
|
<entry file="file://$PROJECT_DIR$/app/assets/javascripts/quill.min.js">
|
30
30
|
<provider selected="true" editor-type-id="text-editor">
|
31
|
-
<state relative-caret-position="
|
32
|
-
<caret line="
|
33
|
-
<folding
|
31
|
+
<state relative-caret-position="414">
|
32
|
+
<caret line="6" column="4009" lean-forward="false" selection-start-line="6" selection-start-column="4009" selection-end-line="6" selection-end-column="4009" />
|
33
|
+
<folding>
|
34
|
+
<element signature="n#!!doc" expanded="true" />
|
35
|
+
</folding>
|
34
36
|
</state>
|
35
37
|
</provider>
|
36
38
|
</entry>
|
@@ -48,13 +50,34 @@
|
|
48
50
|
<file leaf-file-name="quill.global.js" pinned="false" current-in-tab="false">
|
49
51
|
<entry file="file://$PROJECT_DIR$/app/assets/javascripts/quill.global.js">
|
50
52
|
<provider selected="true" editor-type-id="text-editor">
|
51
|
-
<state relative-caret-position="
|
52
|
-
<caret line="
|
53
|
+
<state relative-caret-position="345">
|
54
|
+
<caret line="41" column="61" lean-forward="true" selection-start-line="41" selection-start-column="61" selection-end-line="41" selection-end-column="61" />
|
53
55
|
<folding />
|
54
56
|
</state>
|
55
57
|
</provider>
|
56
58
|
</entry>
|
57
59
|
</file>
|
60
|
+
<file leaf-file-name="README.md" pinned="false" current-in-tab="true">
|
61
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
62
|
+
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
63
|
+
<state split_layout="SPLIT">
|
64
|
+
<first_editor relative-caret-position="-1529">
|
65
|
+
<caret line="15" column="0" lean-forward="true" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
|
66
|
+
<folding>
|
67
|
+
<marker date="1487309573566" expanded="true" signature="1012:1458" ph="{...}" />
|
68
|
+
<marker date="1487309573566" expanded="true" signature="1012:1463" ph="{...}" />
|
69
|
+
<marker date="1487309573566" expanded="true" signature="1053:1458" ph="{...}" />
|
70
|
+
<marker date="1487309573566" expanded="true" signature="1076:1448" ph="[...]" />
|
71
|
+
<marker date="1487309573566" expanded="true" signature="1644:2097" ph="{"theme": 'snow'...}" />
|
72
|
+
<marker date="1487309573566" expanded="true" signature="1686:2091" ph="{...}" />
|
73
|
+
<marker date="1487309573566" expanded="true" signature="1709:2081" ph="[...]" />
|
74
|
+
</folding>
|
75
|
+
</first_editor>
|
76
|
+
<second_editor />
|
77
|
+
</state>
|
78
|
+
</provider>
|
79
|
+
</entry>
|
80
|
+
</file>
|
58
81
|
</leaf>
|
59
82
|
</component>
|
60
83
|
<component name="FileTemplateManagerImpl">
|
@@ -75,10 +98,11 @@
|
|
75
98
|
<option value="$PROJECT_DIR$/app/assets/stylesheets/quill.snow.css" />
|
76
99
|
<option value="$PROJECT_DIR$/app/assets/stylesheets/quill.bubble.css" />
|
77
100
|
<option value="$PROJECT_DIR$/app/assets/javascripts/quill.core.js" />
|
78
|
-
<option value="$PROJECT_DIR$/app/assets/javascripts/quill.global.js" />
|
79
101
|
<option value="$PROJECT_DIR$/quilljs-rails.gemspec" />
|
80
|
-
<option value="$PROJECT_DIR$/lib/quilljs/rails/version.rb" />
|
81
102
|
<option value="$PROJECT_DIR$/app/assets/javascripts/quill.min.js" />
|
103
|
+
<option value="$PROJECT_DIR$/lib/quilljs/rails/version.rb" />
|
104
|
+
<option value="$PROJECT_DIR$/app/assets/javascripts/quill.global.js" />
|
105
|
+
<option value="$PROJECT_DIR$/README.md" />
|
82
106
|
</list>
|
83
107
|
</option>
|
84
108
|
</component>
|
@@ -109,8 +133,6 @@
|
|
109
133
|
<foldersAlwaysOnTop value="true" />
|
110
134
|
</navigator>
|
111
135
|
<panes>
|
112
|
-
<pane id="Scratches" />
|
113
|
-
<pane id="Scope" />
|
114
136
|
<pane id="ProjectPane">
|
115
137
|
<subPane>
|
116
138
|
<PATH>
|
@@ -123,88 +145,10 @@
|
|
123
145
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
124
146
|
</PATH_ELEMENT>
|
125
147
|
</PATH>
|
126
|
-
<PATH>
|
127
|
-
<PATH_ELEMENT>
|
128
|
-
<option name="myItemId" value="quilljs-rails" />
|
129
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
130
|
-
</PATH_ELEMENT>
|
131
|
-
<PATH_ELEMENT>
|
132
|
-
<option name="myItemId" value="quilljs-rails" />
|
133
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
134
|
-
</PATH_ELEMENT>
|
135
|
-
<PATH_ELEMENT>
|
136
|
-
<option name="myItemId" value="lib" />
|
137
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
138
|
-
</PATH_ELEMENT>
|
139
|
-
<PATH_ELEMENT>
|
140
|
-
<option name="myItemId" value="quilljs" />
|
141
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
142
|
-
</PATH_ELEMENT>
|
143
|
-
</PATH>
|
144
|
-
<PATH>
|
145
|
-
<PATH_ELEMENT>
|
146
|
-
<option name="myItemId" value="quilljs-rails" />
|
147
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
148
|
-
</PATH_ELEMENT>
|
149
|
-
<PATH_ELEMENT>
|
150
|
-
<option name="myItemId" value="quilljs-rails" />
|
151
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
152
|
-
</PATH_ELEMENT>
|
153
|
-
<PATH_ELEMENT>
|
154
|
-
<option name="myItemId" value="lib" />
|
155
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
156
|
-
</PATH_ELEMENT>
|
157
|
-
<PATH_ELEMENT>
|
158
|
-
<option name="myItemId" value="quilljs" />
|
159
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
160
|
-
</PATH_ELEMENT>
|
161
|
-
<PATH_ELEMENT>
|
162
|
-
<option name="myItemId" value="rails" />
|
163
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
164
|
-
</PATH_ELEMENT>
|
165
|
-
</PATH>
|
166
|
-
<PATH>
|
167
|
-
<PATH_ELEMENT>
|
168
|
-
<option name="myItemId" value="quilljs-rails" />
|
169
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
170
|
-
</PATH_ELEMENT>
|
171
|
-
<PATH_ELEMENT>
|
172
|
-
<option name="myItemId" value="quilljs-rails" />
|
173
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
174
|
-
</PATH_ELEMENT>
|
175
|
-
<PATH_ELEMENT>
|
176
|
-
<option name="myItemId" value="app" />
|
177
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
178
|
-
</PATH_ELEMENT>
|
179
|
-
<PATH_ELEMENT>
|
180
|
-
<option name="myItemId" value="assets" />
|
181
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
182
|
-
</PATH_ELEMENT>
|
183
|
-
</PATH>
|
184
|
-
<PATH>
|
185
|
-
<PATH_ELEMENT>
|
186
|
-
<option name="myItemId" value="quilljs-rails" />
|
187
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
188
|
-
</PATH_ELEMENT>
|
189
|
-
<PATH_ELEMENT>
|
190
|
-
<option name="myItemId" value="quilljs-rails" />
|
191
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
192
|
-
</PATH_ELEMENT>
|
193
|
-
<PATH_ELEMENT>
|
194
|
-
<option name="myItemId" value="app" />
|
195
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
196
|
-
</PATH_ELEMENT>
|
197
|
-
<PATH_ELEMENT>
|
198
|
-
<option name="myItemId" value="assets" />
|
199
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
200
|
-
</PATH_ELEMENT>
|
201
|
-
<PATH_ELEMENT>
|
202
|
-
<option name="myItemId" value="javascripts" />
|
203
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
204
|
-
</PATH_ELEMENT>
|
205
|
-
</PATH>
|
206
148
|
</subPane>
|
207
149
|
</pane>
|
150
|
+
<pane id="Scope" />
|
151
|
+
<pane id="Scratches" />
|
208
152
|
</panes>
|
209
153
|
</component>
|
210
154
|
<component name="PropertiesComponent">
|
@@ -343,34 +287,35 @@
|
|
343
287
|
<option name="presentableId" value="Default" />
|
344
288
|
<updated>1487101611918</updated>
|
345
289
|
<workItem from="1487101614672" duration="3887000" />
|
346
|
-
<workItem from="1487284865720" duration="
|
290
|
+
<workItem from="1487284865720" duration="7453000" />
|
291
|
+
<workItem from="1487304532974" duration="3702000" />
|
347
292
|
</task>
|
348
293
|
<servers />
|
349
294
|
</component>
|
350
295
|
<component name="TimeTrackingManager">
|
351
|
-
<option name="totallyTimeSpent" value="
|
296
|
+
<option name="totallyTimeSpent" value="15042000" />
|
352
297
|
</component>
|
353
298
|
<component name="ToolWindowManager">
|
354
299
|
<frame x="65" y="24" width="1535" height="876" extended-state="6" />
|
355
|
-
<editor active="
|
300
|
+
<editor active="false" />
|
356
301
|
<layout>
|
357
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
302
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.14842176" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
358
303
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
359
304
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
360
305
|
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
361
306
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
362
|
-
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3287841" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
363
307
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
364
308
|
<window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.329602" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
365
309
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
366
|
-
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
367
310
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
368
311
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
369
312
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
370
313
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
314
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3287841" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
371
315
|
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
372
316
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
373
317
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
318
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
374
319
|
</layout>
|
375
320
|
</component>
|
376
321
|
<component name="TypeScriptGeneratedFilesManager">
|
@@ -384,6 +329,40 @@
|
|
384
329
|
<watches-manager />
|
385
330
|
</component>
|
386
331
|
<component name="editorHistoryManager">
|
332
|
+
<entry file="file://$PROJECT_DIR$/quilljs-rails.gemspec">
|
333
|
+
<provider selected="true" editor-type-id="text-editor">
|
334
|
+
<state relative-caret-position="324">
|
335
|
+
<caret line="18" column="30" lean-forward="false" selection-start-line="18" selection-start-column="30" selection-end-line="18" selection-end-column="30" />
|
336
|
+
<folding />
|
337
|
+
</state>
|
338
|
+
</provider>
|
339
|
+
</entry>
|
340
|
+
<entry file="file://$PROJECT_DIR$/app/assets/javascripts/quill.min.js">
|
341
|
+
<provider selected="true" editor-type-id="text-editor">
|
342
|
+
<state relative-caret-position="0">
|
343
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
344
|
+
<folding>
|
345
|
+
<element signature="n#!!doc" expanded="true" />
|
346
|
+
</folding>
|
347
|
+
</state>
|
348
|
+
</provider>
|
349
|
+
</entry>
|
350
|
+
<entry file="file://$PROJECT_DIR$/lib/quilljs/rails/version.rb">
|
351
|
+
<provider selected="true" editor-type-id="text-editor">
|
352
|
+
<state relative-caret-position="36">
|
353
|
+
<caret line="2" column="20" lean-forward="false" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
|
354
|
+
<folding />
|
355
|
+
</state>
|
356
|
+
</provider>
|
357
|
+
</entry>
|
358
|
+
<entry file="file://$PROJECT_DIR$/app/assets/javascripts/quill.global.js">
|
359
|
+
<provider selected="true" editor-type-id="text-editor">
|
360
|
+
<state relative-caret-position="18">
|
361
|
+
<caret line="1" column="28" lean-forward="false" selection-start-line="1" selection-start-column="28" selection-end-line="1" selection-end-column="28" />
|
362
|
+
<folding />
|
363
|
+
</state>
|
364
|
+
</provider>
|
365
|
+
</entry>
|
387
366
|
<entry file="file://$PROJECT_DIR$/quilljs-rails.gemspec">
|
388
367
|
<provider selected="true" editor-type-id="text-editor">
|
389
368
|
<state relative-caret-position="288">
|
@@ -396,7 +375,9 @@
|
|
396
375
|
<provider selected="true" editor-type-id="text-editor">
|
397
376
|
<state relative-caret-position="0">
|
398
377
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
399
|
-
<folding
|
378
|
+
<folding>
|
379
|
+
<element signature="n#!!doc" expanded="true" />
|
380
|
+
</folding>
|
400
381
|
</state>
|
401
382
|
</provider>
|
402
383
|
</entry>
|
@@ -448,7 +429,7 @@
|
|
448
429
|
<entry file="file://$PROJECT_DIR$/quilljs-rails.gemspec">
|
449
430
|
<provider selected="true" editor-type-id="text-editor">
|
450
431
|
<state relative-caret-position="324">
|
451
|
-
<caret line="18" column="30" lean-forward="
|
432
|
+
<caret line="18" column="30" lean-forward="false" selection-start-line="18" selection-start-column="30" selection-end-line="18" selection-end-column="30" />
|
452
433
|
<folding />
|
453
434
|
</state>
|
454
435
|
</provider>
|
@@ -461,21 +442,42 @@
|
|
461
442
|
</state>
|
462
443
|
</provider>
|
463
444
|
</entry>
|
464
|
-
<entry file="file://$PROJECT_DIR$/app/assets/javascripts/quill.
|
445
|
+
<entry file="file://$PROJECT_DIR$/app/assets/javascripts/quill.min.js">
|
465
446
|
<provider selected="true" editor-type-id="text-editor">
|
466
|
-
<state relative-caret-position="
|
467
|
-
<caret line="
|
468
|
-
<folding
|
447
|
+
<state relative-caret-position="414">
|
448
|
+
<caret line="6" column="4009" lean-forward="false" selection-start-line="6" selection-start-column="4009" selection-end-line="6" selection-end-column="4009" />
|
449
|
+
<folding>
|
450
|
+
<element signature="n#!!doc" expanded="true" />
|
451
|
+
</folding>
|
469
452
|
</state>
|
470
453
|
</provider>
|
471
454
|
</entry>
|
472
|
-
<entry file="file://$PROJECT_DIR$/app/assets/javascripts/quill.
|
455
|
+
<entry file="file://$PROJECT_DIR$/app/assets/javascripts/quill.global.js">
|
473
456
|
<provider selected="true" editor-type-id="text-editor">
|
474
|
-
<state relative-caret-position="
|
475
|
-
<caret line="
|
457
|
+
<state relative-caret-position="345">
|
458
|
+
<caret line="41" column="61" lean-forward="true" selection-start-line="41" selection-start-column="61" selection-end-line="41" selection-end-column="61" />
|
476
459
|
<folding />
|
477
460
|
</state>
|
478
461
|
</provider>
|
479
462
|
</entry>
|
463
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
464
|
+
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
465
|
+
<state split_layout="SPLIT">
|
466
|
+
<first_editor relative-caret-position="-1529">
|
467
|
+
<caret line="15" column="0" lean-forward="true" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
|
468
|
+
<folding>
|
469
|
+
<marker date="1487309573566" expanded="true" signature="1012:1458" ph="{...}" />
|
470
|
+
<marker date="1487309573566" expanded="true" signature="1012:1463" ph="{...}" />
|
471
|
+
<marker date="1487309573566" expanded="true" signature="1053:1458" ph="{...}" />
|
472
|
+
<marker date="1487309573566" expanded="true" signature="1076:1448" ph="[...]" />
|
473
|
+
<marker date="1487309573566" expanded="true" signature="1644:2097" ph="{"theme": 'snow'...}" />
|
474
|
+
<marker date="1487309573566" expanded="true" signature="1686:2091" ph="{...}" />
|
475
|
+
<marker date="1487309573566" expanded="true" signature="1709:2081" ph="[...]" />
|
476
|
+
</folding>
|
477
|
+
</first_editor>
|
478
|
+
<second_editor />
|
479
|
+
</state>
|
480
|
+
</provider>
|
481
|
+
</entry>
|
480
482
|
</component>
|
481
483
|
</project>
|
data/README.md
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
# Quilljs::Rails
|
2
|
-
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/quilljs/rails`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
1
|
+
# Quilljs::Rails
|
6
2
|
|
3
|
+
This gem adds a Quill rich editor to an existing text field or text area.
|
4
|
+
[Quill - Your powerful, rich text editor](http://quilljs.com/)
|
7
5
|
## Installation
|
8
6
|
|
9
7
|
Add this line to your application's Gemfile:
|
@@ -20,19 +18,100 @@ Or install it yourself as:
|
|
20
18
|
|
21
19
|
$ gem install quilljs-rails
|
22
20
|
|
21
|
+
|
23
22
|
## Usage
|
24
23
|
|
25
|
-
|
24
|
+
### From CDN(recommended)
|
25
|
+
Add these lines in the head section of application.html.erb
|
26
|
+
|
27
|
+
<script src="https://cdn.quilljs.com/1.1.9/quill.js"></script>
|
28
|
+
<link href="https://cdn.quilljs.com/1.1.9/quill.snow.css" rel="stylesheet">
|
29
|
+
Then add this line to your application.js file
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
//= require quill.global
|
33
|
+
```
|
34
|
+
|
35
|
+
Add the class `quill_container` to the desired text_field or text_area
|
36
|
+
|
37
|
+
Eg. with `bootstrap_form_for`,
|
26
38
|
|
39
|
+
<%= f.text_field :title, label: 'Title', type: 'text', class: 'quill_container' %>
|
40
|
+
|
41
|
+
With `Simple form`,
|
42
|
+
|
43
|
+
<%= f.input :title, input_html: { class: 'quill_container' } %>
|
44
|
+
|
45
|
+
Quilljs loads with these defaults :-
|
46
|
+
|
47
|
+
```javascript
|
48
|
+
|
49
|
+
theme: 'snow',
|
50
|
+
modules: {
|
51
|
+
toolbar: [
|
52
|
+
[{ 'header': [1, 2, 3, false] }],
|
53
|
+
[{ 'color': [] }, { 'background': [] }],
|
54
|
+
['bold', 'italic', 'underline', 'strike'],
|
55
|
+
['blockquote', 'code-block'],
|
56
|
+
[{ 'list': 'ordered'}, { 'list': 'bullet' }],
|
57
|
+
[{ 'indent': '-1'}, { 'indent': '+1' }],
|
58
|
+
['clean']
|
59
|
+
]
|
60
|
+
}
|
61
|
+
|
62
|
+
```
|
63
|
+
|
64
|
+
In order to customize your defaults, this gem comes with a global javascript object. You can
|
65
|
+
setup the global object(in a js file) like this :-
|
66
|
+
|
67
|
+
```javascript
|
68
|
+
var defaults = {
|
69
|
+
theme: 'snow',
|
70
|
+
modules: {
|
71
|
+
toolbar: [
|
72
|
+
[{ 'header': [1, 2, 3, false] }],
|
73
|
+
[{ 'color': [] }, { 'background': [] }],
|
74
|
+
['bold', 'italic', 'underline', 'strike'],
|
75
|
+
['blockquote', 'code-block'],
|
76
|
+
[{ 'list': 'ordered'}, { 'list': 'bullet' }],
|
77
|
+
[{ 'indent': '-1'}, { 'indent': '+1' }],
|
78
|
+
['clean']
|
79
|
+
]
|
80
|
+
}
|
81
|
+
};
|
82
|
+
|
83
|
+
//This is the global config object
|
84
|
+
Quilljs.setDefaults(defaults)
|
85
|
+
```
|
86
|
+
|
87
|
+
### From the gem
|
88
|
+
Add these lines to application.js
|
89
|
+
|
90
|
+
//= require quill.min
|
91
|
+
//= require quill.global
|
92
|
+
|
93
|
+
Add these lines to application.scss(or application.css if you are not using sass)
|
94
|
+
|
95
|
+
*= require quill.snow
|
96
|
+
|
97
|
+
This gem comes with the core, snow(default) and bubble themes. For eg. to use the bubble theme
|
98
|
+
remove other quill themes and add
|
99
|
+
|
100
|
+
*= require quill.bubble
|
101
|
+
|
102
|
+
Make sure to add `theme: 'bubble'` in the `Quilljs.setDefaults` setting as explained above.
|
103
|
+
|
104
|
+
This gem also comes with the latest `quill.min.js` and `quill.core.js`.
|
105
|
+
|
106
|
+
This gem can also be used in conjuction with [bootstrap maxlength](https://mimo84.github.io/bootstrap-maxlength/).
|
27
107
|
## Development
|
28
108
|
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
109
|
|
31
110
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
111
|
|
33
112
|
## Contributing
|
34
113
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
114
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/abhinavmathur/quilljs-rails.
|
36
115
|
|
37
116
|
|
38
117
|
## License
|
@@ -34,7 +34,7 @@
|
|
34
34
|
var create_quill_containers = function(index, input_field) {
|
35
35
|
var current_quill_container = create_quill_container(input_field, input_field.id + '-quill');
|
36
36
|
var placeholder = ''; // Field's placeholder, to be shown on the Quill when empty.
|
37
|
-
if($(input_field).
|
37
|
+
if($(input_field).hasAttribute('placeholder'))
|
38
38
|
{
|
39
39
|
settings.placeholder = $(input_field).attr('placeholder');
|
40
40
|
}
|
@@ -83,7 +83,7 @@
|
|
83
83
|
}, 500);
|
84
84
|
|
85
85
|
|
86
|
-
var quill_container = $('.
|
86
|
+
var quill_container = $('.quill_container');
|
87
87
|
if (quill_container.length > 0) {
|
88
88
|
quill_container.each(function (index, object) {
|
89
89
|
return create_quill_containers(index, object)
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quilljs-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abhinav Mathur
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- lib/quilljs/rails.rb
|
83
83
|
- lib/quilljs/rails/version.rb
|
84
84
|
- quilljs-rails-0.0.1.gem
|
85
|
+
- quilljs-rails-0.0.2.gem
|
85
86
|
- quilljs-rails.gemspec
|
86
87
|
- test/quilljs/rails_test.rb
|
87
88
|
- test/test_helper.rb
|