ckeditor5 1.31.6 → 1.31.7

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: fa165c39ee709d2bceec26a20fc9565c6c4d8297ee77727a49ed6bfbb62a182f
4
- data.tar.gz: fafa685621051fccab33bfe4b81a9a4f33b5c0d70e30e84887cf66bb95f755fa
3
+ metadata.gz: 82acd8aed3945b110526357e8a2d81537723e8fedf0f0afd77a3023d10564a4b
4
+ data.tar.gz: e7828da93ca6b2e189f49479d8cd6df9b072f107f618561c152ff6c8921a4641
5
5
  SHA512:
6
- metadata.gz: ef217f745a696daf3e7faead6ffcd7b519936003b61edd778e70152876d48517f23902379722ed481ef7785f6da7aeceffae766e14b2d93cd4f57acaeed3431b
7
- data.tar.gz: dbbf2d81c1d3b7cfb5ee7dfc7119a5aee3e04febf16f17d9e1153daaaf30e7f2df138c97eddfa3391bbd07db545a70e8d7f5b79753fb56364692ebe8f1a0821a
6
+ metadata.gz: b6cc7d2ca37aad69c87fbd5aaf3a0d98f9bc6630bba20734c1b920819a29f306ddb329a6889162dc9a36302f872f0e6b061ad9ee5c12c5783fc4374298369c26
7
+ data.tar.gz: 5086896ab0ffd866de5c0b5213dff6a058e5891ba58eb66cdd65a3ae71606ad3f49293143100b52b9a6aa0f2a974f9001b75c7f211ef5eaf41c4c9aadcc252ed
data/README.md CHANGED
@@ -91,7 +91,7 @@ CKEditor5::Rails.configure do
91
91
 
92
92
  # Optionally, you can specify version of CKEditor 5 to use.
93
93
  # If it's not specified the default version specified in the gem will be used.
94
- # version '45.2.1'
94
+ # version '46.0.0'
95
95
 
96
96
  # Upload images to the server using the simple upload adapter, instead of Base64 encoding.
97
97
  # simple_upload_adapter
@@ -216,7 +216,7 @@ You can create your own by defining it in the `config/initializers/ckeditor5.rb`
216
216
 
217
217
  CKEditor5::Rails.configure do
218
218
  # It's possible to override the default preset right in the initializer.
219
- version '45.2.1'
219
+ version '46.0.0'
220
220
 
221
221
  # New presets inherit properties from the default preset defined in the initializer.
222
222
  # In this example, the custom preset inherits everything from default but disables the menubar:
@@ -226,7 +226,7 @@ CKEditor5::Rails.configure do
226
226
 
227
227
  # In order to define preset from scratch, you can use the `inherit: false` option.
228
228
  presets.define :blank_preset, inherit: false do
229
- version '45.2.1'
229
+ version '46.0.0'
230
230
 
231
231
  # It tells the integration to fetch the newest security patches and bug fixes.
232
232
  # It may be disabled, but it's highly recommended to keep it enabled to avoid
@@ -348,7 +348,7 @@ Defines the version of CKEditor 5 to be used. The example below shows how to set
348
348
  CKEditor5::Rails.configure do
349
349
  # ... other configuration
350
350
 
351
- version '45.2.1'
351
+ version '46.0.0'
352
352
  end
353
353
  ```
354
354
 
@@ -360,7 +360,7 @@ In order to disable default patches, you can pass the `apply_patches: false` key
360
360
  CKEditor5::Rails.configure do
361
361
  # ... other configuration
362
362
 
363
- version '45.2.1', apply_patches: false
363
+ version '46.0.0', apply_patches: false
364
364
  end
365
365
  ```
366
366
 
@@ -1340,7 +1340,7 @@ It may be useful when you want to define a preset based on the current user or r
1340
1340
  class ApplicationController < ActionController::Base
1341
1341
  def show
1342
1342
  @preset = ckeditor5_preset do
1343
- version '45.2.1'
1343
+ version '46.0.0'
1344
1344
 
1345
1345
  toolbar :sourceEditing, :|, :bold, :italic, :underline, :strikethrough,
1346
1346
  :subscript, :superscript, :removeFormat, :|, :bulletedList, :numberedList,
@@ -1375,7 +1375,7 @@ If you want to override the preset defined in the initializer, you can search fo
1375
1375
  class ApplicationController < ActionController::Base
1376
1376
  def show
1377
1377
  @preset = ckeditor5_preset(:default).override do
1378
- version '45.2.1'
1378
+ version '46.0.0'
1379
1379
 
1380
1380
  toolbar :sourceEditing, :|, :bold, :italic, :underline, :strikethrough,
1381
1381
  :subscript, :superscript, :removeFormat, :|, :bulletedList, :numberedList,
@@ -1548,7 +1548,7 @@ In that scenario it's recommended to add `gpl` method to the initializer along w
1548
1548
 
1549
1549
  CKEditor5::Rails.configure do
1550
1550
  gpl
1551
- version '45.2.1'
1551
+ version '46.0.0'
1552
1552
  end
1553
1553
  ```
1554
1554
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  module CKEditor5
4
4
  module Rails
5
- VERSION = '1.31.6'
5
+ VERSION = '1.31.7'
6
6
 
7
- DEFAULT_CKEDITOR_VERSION = '45.2.1'
7
+ DEFAULT_CKEDITOR_VERSION = '46.0.0'
8
8
  end
9
9
  end
@@ -17,7 +17,7 @@ RSpec.describe 'CKEditor5 Context Integration', type: :feature, js: true do
17
17
  end
18
18
 
19
19
  it 'allows editing content in context editors' do
20
- editors = all('.ck-editor__editable')
20
+ editors = all('.ck-editor__editable', count: 2, wait: 10)
21
21
 
22
22
  # Test first editor
23
23
  editors[0].click
@@ -200,6 +200,14 @@ RSpec.describe CKEditor5::Rails::Cdn::Helpers do
200
200
 
201
201
  expect(context[:preset].language).to eq({ ui: :pl, content: :pl })
202
202
  end
203
+
204
+ it 'should set language with normalized separated code' do
205
+ preset.language(:'zh-CN')
206
+
207
+ helper.ckeditor5_assets(preset: :default)
208
+
209
+ expect(context[:preset].language).to eq({ ui: :'zh-cn', content: :'zh-cn' })
210
+ end
203
211
  end
204
212
 
205
213
  context 'destructure non-matching preset override' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ckeditor5
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.31.6
4
+ version: 1.31.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Bagiński
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-06-30 00:00:00.000000000 Z
12
+ date: 2025-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails