quilljs2-rails 2.1.0 → 2.1.2
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 +4 -4
- data/.idea/workspace.xml +23 -3
- data/README.md +8 -3
- data/app/assets/javascripts/quill.global.js +6 -3
- data/lib/quilljs/rails/version.rb +1 -1
- data/lib/quilljs2/rails.rb +2 -0
- data/lib/quilljs2-rails.rb +3 -0
- data/test/quilljs/rails_test.rb +6 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfa537ee457d8e195b9635befd5c26d5ebfd9e84d664684be6d8d1d45c0a356f
|
4
|
+
data.tar.gz: bf381bdff141c2419f90602a4fbfe445bb82a10eaf54f4998f68bee9a1f8042b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ab7daf6f52b0161a9e596c2809b3f94b94ed388a8575a36a524ec00706cedbeb5a3921b400c02d029c88bf9e10655b93df11aac74a1409719e4ee70af2ac20f
|
7
|
+
data.tar.gz: 31c359ba0fcf25c00e8023b1bedd7895c5ad5ed7ca206898f7f78f5a7704e1498164cadc66a1a58d89d0c6fd3afa41abcbf25816be9abea60f34669623449aed
|
data/.idea/workspace.xml
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
<component name="ChangeListManager">
|
7
7
|
<list default="true" id="f9fcd731-5b64-4fed-8dd4-b5dc13a62758" name="Default" comment="Fixed theme related issue.">
|
8
8
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
9
|
+
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
|
10
|
+
<change beforePath="$PROJECT_DIR$/app/assets/javascripts/quill.global.js" beforeDir="false" afterPath="$PROJECT_DIR$/app/assets/javascripts/quill.global.js" afterDir="false" />
|
9
11
|
<change beforePath="$PROJECT_DIR$/lib/quilljs/rails/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/quilljs/rails/version.rb" afterDir="false" />
|
10
12
|
</list>
|
11
13
|
<option name="SHOW_DIALOG" value="false" />
|
@@ -239,7 +241,7 @@
|
|
239
241
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
240
242
|
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
|
241
243
|
"RunOnceActivity.git.unshallow": "true",
|
242
|
-
"com.intellij.lang.ruby.rbs.tools.collection.workspace.sync.RbsCollectionUpdateProjectActivity#LAST_UPDATE_TIMESTAMP": "
|
244
|
+
"com.intellij.lang.ruby.rbs.tools.collection.workspace.sync.RbsCollectionUpdateProjectActivity#LAST_UPDATE_TIMESTAMP": "1755860214653",
|
243
245
|
"git-widget-placeholder": "master",
|
244
246
|
"junie.onboarding.icon.badge.shown": "true",
|
245
247
|
"last_opened_file_path": "/Users/sumar/projects/sumartech/quilljs-rails",
|
@@ -382,7 +384,9 @@
|
|
382
384
|
<workItem from="1487345374387" duration="523000" />
|
383
385
|
<workItem from="1491105689125" duration="177000" />
|
384
386
|
<workItem from="1755780255521" duration="2641000" />
|
385
|
-
<workItem from="1755784117848" duration="
|
387
|
+
<workItem from="1755784117848" duration="1522000" />
|
388
|
+
<workItem from="1755845749795" duration="2166000" />
|
389
|
+
<workItem from="1755860155785" duration="509000" />
|
386
390
|
</task>
|
387
391
|
<task id="LOCAL-00001" summary="Updated quilljs to latest version.">
|
388
392
|
<option name="closed" value="true" />
|
@@ -408,7 +412,23 @@
|
|
408
412
|
<option name="project" value="LOCAL" />
|
409
413
|
<updated>1755784353513</updated>
|
410
414
|
</task>
|
411
|
-
<
|
415
|
+
<task id="LOCAL-00004" summary="Fixed theme related issue.">
|
416
|
+
<option name="closed" value="true" />
|
417
|
+
<created>1755784935703</created>
|
418
|
+
<option name="number" value="00004" />
|
419
|
+
<option name="presentableId" value="LOCAL-00004" />
|
420
|
+
<option name="project" value="LOCAL" />
|
421
|
+
<updated>1755784935703</updated>
|
422
|
+
</task>
|
423
|
+
<task id="LOCAL-00005" summary="Fixed theme related issue.">
|
424
|
+
<option name="closed" value="true" />
|
425
|
+
<created>1755846005073</created>
|
426
|
+
<option name="number" value="00005" />
|
427
|
+
<option name="presentableId" value="LOCAL-00005" />
|
428
|
+
<option name="project" value="LOCAL" />
|
429
|
+
<updated>1755846005073</updated>
|
430
|
+
</task>
|
431
|
+
<option name="localTasksCounter" value="6" />
|
412
432
|
<servers />
|
413
433
|
</component>
|
414
434
|
<component name="TimeTrackingManager">
|
data/README.md
CHANGED
@@ -22,8 +22,8 @@ And then execute:
|
|
22
22
|
### From CDN(recommended)
|
23
23
|
Add these lines in the head section of application.html.erb
|
24
24
|
|
25
|
-
<script src="https://cdn.
|
26
|
-
<link href="https://cdn.
|
25
|
+
<script src="https://cdn.jsdelivr.net/npm/quill@2.0.3/dist/quill.js"></script>
|
26
|
+
<link href="https://cdn.jsdelivr.net/npm/quill@2.0.3/dist/quill.snow.css" rel="stylesheet">
|
27
27
|
Then add this line to your application.js file
|
28
28
|
|
29
29
|
```ruby
|
@@ -99,7 +99,12 @@ remove other quill themes and add
|
|
99
99
|
|
100
100
|
Make sure to add `theme: 'bubble'` in the `Quilljs.setDefaults` setting as explained above.
|
101
101
|
|
102
|
-
Note: The bundled local assets have been updated to Quill 2.0.3. You can use them directly via Sprockets (see "From the gem"), although using
|
102
|
+
Note: The bundled local assets have been updated to Quill 2.0.3. You can use them directly via Sprockets (see "From the gem"), although using a CDN is still recommended for most apps. For CDN, use jsDelivr (example above) or unpkg for slab/quill@2.0.3.
|
103
|
+
|
104
|
+
### Turbo/Hotwire notes
|
105
|
+
- The initializer listens for `ready`, `page:change`, `turbolinks:load`, and `turbo:load` events.
|
106
|
+
- Editors are initialized per field using a data attribute, so repeated navigations or partial updates will not double-initialize existing editors.
|
107
|
+
- Ensure you are not including any old Quill 1.x assets in your app. Remove old CDN links or packs that could override the 2.0.3 assets.
|
103
108
|
|
104
109
|
This gem can also be used in conjuction with [bootstrap maxlength](https://mimo84.github.io/bootstrap-maxlength/).
|
105
110
|
|
@@ -87,14 +87,17 @@
|
|
87
87
|
var quill_container = $('.quill_container');
|
88
88
|
if (quill_container.length > 0) {
|
89
89
|
quill_container.each(function (index, object) {
|
90
|
-
|
90
|
+
if ($(object).data('quill-initialized')) { return; }
|
91
|
+
create_quill_containers(index, object);
|
92
|
+
$(object).data('quill-initialized', true);
|
91
93
|
});
|
92
94
|
}
|
93
95
|
}
|
94
96
|
};
|
95
97
|
|
96
|
-
$( document ).on('ready page:change turbolinks:load', function() {
|
97
|
-
|
98
|
+
$( document ).on('ready page:change turbolinks:load turbo:load', function() {
|
99
|
+
var pending = $('.quill_container').filter(function(){ return !$(this).data('quill-initialized'); });
|
100
|
+
if (pending.length > 0){
|
98
101
|
Quilljs.loadDefaults();
|
99
102
|
}
|
100
103
|
});
|
data/test/quilljs/rails_test.rb
CHANGED
@@ -13,4 +13,10 @@ class Quilljs::RailsTest < Minitest::Test
|
|
13
13
|
assert_includes readme, 'maintained fork of the original quilljs-rails', 'README should mention this is a fork of the original'
|
14
14
|
assert_includes readme, "gem 'quilljs2-rails'", 'README installation should use the new gem name'
|
15
15
|
end
|
16
|
+
|
17
|
+
def test_default_require_file_exists
|
18
|
+
# Ensure requiring by gem name works in host apps
|
19
|
+
assert require('quilljs2-rails'), 'Requiring quilljs2-rails should succeed'
|
20
|
+
assert defined?(::Quilljs::Rails), 'Quilljs::Rails should be defined after requiring the gem entrypoint'
|
21
|
+
end
|
16
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quilljs2-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sajjad Umar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -83,6 +83,8 @@ files:
|
|
83
83
|
- bin/setup
|
84
84
|
- lib/quilljs/rails.rb
|
85
85
|
- lib/quilljs/rails/version.rb
|
86
|
+
- lib/quilljs2-rails.rb
|
87
|
+
- lib/quilljs2/rails.rb
|
86
88
|
- quilljs-rails.gemspec
|
87
89
|
- test/quilljs/functionality_test.rb
|
88
90
|
- test/quilljs/rails_test.rb
|