quilljs2-rails 2.1.1 → 2.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e70149a7a8197ccf82672ab0d7b9c1b3e3a271d9d66d9599d1b6be53b572defb
4
- data.tar.gz: d272aaf8ed9ba10a16333c759a9a947a5c6883bd6a42acf74beb5167bed98f2c
3
+ metadata.gz: ee21eaf746c34fa62d8e6465e0751359eef02fb7c33659ac0c08a73fe7ac3817
4
+ data.tar.gz: 3a4965c95f713e2be02f408f740e274aa5ee865542923cb2c02f42935ff75278
5
5
  SHA512:
6
- metadata.gz: dc39aabb0877fc55a5e7f0e186b2b2059ceb43ef5f6dec142b487b17293d0b5723d8d89d16281b22410c9f181750474b65e28fd46bbac688ba285010fa49b8f8
7
- data.tar.gz: 8aa35d367bec11633c33559c19933fbe0949a0f55eaed6d902254dfb1b2fb3fb73f7b36a3a00576f1f46c714a0d1ff74741f53348398611465724720c989b94a
6
+ metadata.gz: e01f213f7093a0ecb53c300886ce877bff2ffbb0f100478ba08ca1b71dfb1cca5f8079038b3a8440fc106d3e8dc75d382533225756abb19fbb31ab29f15e0c70
7
+ data.tar.gz: 9487ac27d1787ca91af541e20e3cb52cc2d6c3984620773db5b72573a782619351d438004648939db2bd9c44d72d3eee3c7f3d4133e266f0e4dd0a378e810840
data/.idea/workspace.xml CHANGED
@@ -4,7 +4,18 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="f9fcd731-5b64-4fed-8dd4-b5dc13a62758" name="Default" comment="Fixed theme related issue." />
7
+ <list default="true" id="f9fcd731-5b64-4fed-8dd4-b5dc13a62758" name="Default" comment="Fixed some 2.0.3 related cdn issues.">
8
+ <change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/Rakefile" beforeDir="false" afterPath="$PROJECT_DIR$/Rakefile" afterDir="false" />
10
+ <change beforePath="$PROJECT_DIR$/app/assets/javascripts/quill.core.js" beforeDir="false" afterPath="$PROJECT_DIR$/app/assets/javascripts/quill.core.js" afterDir="false" />
11
+ <change beforePath="$PROJECT_DIR$/app/assets/javascripts/quill.min.js" beforeDir="false" afterPath="$PROJECT_DIR$/app/assets/javascripts/quill.min.js" afterDir="false" />
12
+ <change beforePath="$PROJECT_DIR$/app/assets/stylesheets/quill.bubble.css" beforeDir="false" afterPath="$PROJECT_DIR$/app/assets/stylesheets/quill.bubble.css" afterDir="false" />
13
+ <change beforePath="$PROJECT_DIR$/app/assets/stylesheets/quill.core.css" beforeDir="false" afterPath="$PROJECT_DIR$/app/assets/stylesheets/quill.core.css" afterDir="false" />
14
+ <change beforePath="$PROJECT_DIR$/app/assets/stylesheets/quill.snow.css" beforeDir="false" afterPath="$PROJECT_DIR$/app/assets/stylesheets/quill.snow.css" afterDir="false" />
15
+ <change beforePath="$PROJECT_DIR$/lib/quilljs/rails/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/quilljs/rails/version.rb" afterDir="false" />
16
+ <change beforePath="$PROJECT_DIR$/quilljs-rails.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/quilljs-rails.gemspec" afterDir="false" />
17
+ <change beforePath="$PROJECT_DIR$/test/quilljs/functionality_test.rb" beforeDir="false" afterPath="$PROJECT_DIR$/test/quilljs/functionality_test.rb" afterDir="false" />
18
+ </list>
8
19
  <option name="SHOW_DIALOG" value="false" />
9
20
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
21
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -236,7 +247,7 @@
236
247
  "RunOnceActivity.ShowReadmeOnStart": "true",
237
248
  "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
238
249
  "RunOnceActivity.git.unshallow": "true",
239
- "com.intellij.lang.ruby.rbs.tools.collection.workspace.sync.RbsCollectionUpdateProjectActivity#LAST_UPDATE_TIMESTAMP": "1755784176743",
250
+ "com.intellij.lang.ruby.rbs.tools.collection.workspace.sync.RbsCollectionUpdateProjectActivity#LAST_UPDATE_TIMESTAMP": "1755860214653",
240
251
  "git-widget-placeholder": "master",
241
252
  "junie.onboarding.icon.badge.shown": "true",
242
253
  "last_opened_file_path": "/Users/sumar/projects/sumartech/quilljs-rails",
@@ -380,6 +391,8 @@
380
391
  <workItem from="1491105689125" duration="177000" />
381
392
  <workItem from="1755780255521" duration="2641000" />
382
393
  <workItem from="1755784117848" duration="1522000" />
394
+ <workItem from="1755845749795" duration="2166000" />
395
+ <workItem from="1755860155785" duration="3484000" />
383
396
  </task>
384
397
  <task id="LOCAL-00001" summary="Updated quilljs to latest version.">
385
398
  <option name="closed" value="true" />
@@ -413,7 +426,23 @@
413
426
  <option name="project" value="LOCAL" />
414
427
  <updated>1755784935703</updated>
415
428
  </task>
416
- <option name="localTasksCounter" value="5" />
429
+ <task id="LOCAL-00005" summary="Fixed theme related issue.">
430
+ <option name="closed" value="true" />
431
+ <created>1755846005073</created>
432
+ <option name="number" value="00005" />
433
+ <option name="presentableId" value="LOCAL-00005" />
434
+ <option name="project" value="LOCAL" />
435
+ <updated>1755846005073</updated>
436
+ </task>
437
+ <task id="LOCAL-00006" summary="Fixed some 2.0.3 related cdn issues.">
438
+ <option name="closed" value="true" />
439
+ <created>1755860766111</created>
440
+ <option name="number" value="00006" />
441
+ <option name="presentableId" value="LOCAL-00006" />
442
+ <option name="project" value="LOCAL" />
443
+ <updated>1755860766112</updated>
444
+ </task>
445
+ <option name="localTasksCounter" value="7" />
417
446
  <servers />
418
447
  </component>
419
448
  <component name="TimeTrackingManager">
@@ -448,7 +477,8 @@
448
477
  <component name="VcsManagerConfiguration">
449
478
  <MESSAGE value="Updated quilljs to latest version." />
450
479
  <MESSAGE value="Fixed theme related issue." />
451
- <option name="LAST_COMMIT_MESSAGE" value="Fixed theme related issue." />
480
+ <MESSAGE value="Fixed some 2.0.3 related cdn issues." />
481
+ <option name="LAST_COMMIT_MESSAGE" value="Fixed some 2.0.3 related cdn issues." />
452
482
  </component>
453
483
  <component name="editorHistoryManager">
454
484
  <entry file="file://$PROJECT_DIR$/quilljs-rails.gemspec">
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.quilljs.com/2.0.3/quill.js"></script>
26
- <link href="https://cdn.quilljs.com/2.0.3/quill.snow.css" rel="stylesheet">
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 the official CDN is still recommended for most apps. Use the CDN links above to load Quill 2.0.3.
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
 
data/Rakefile CHANGED
@@ -1,6 +1,9 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rake/testtask"
3
3
 
4
+ # Load custom rake tasks from lib/tasks
5
+ Dir.glob(File.expand_path('lib/tasks/**/*.rake', __dir__)).each { |r| load r }
6
+
4
7
  Rake::TestTask.new(:test) do |t|
5
8
  t.libs << "test"
6
9
  t.libs << "lib"