ckeditor5 1.31.6 → 1.31.8

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: 3cdc9509caaaff593afe022979b62cc9142cd5c17d714481e3e572161d23b991
4
+ data.tar.gz: 893ec4d32648c9c60ba2bb1cd676bda29a28a21a6324ef96c5e5ebe1590a0663
5
5
  SHA512:
6
- metadata.gz: ef217f745a696daf3e7faead6ffcd7b519936003b61edd778e70152876d48517f23902379722ed481ef7785f6da7aeceffae766e14b2d93cd4f57acaeed3431b
7
- data.tar.gz: dbbf2d81c1d3b7cfb5ee7dfc7119a5aee3e04febf16f17d9e1153daaaf30e7f2df138c97eddfa3391bbd07db545a70e8d7f5b79753fb56364692ebe8f1a0821a
6
+ metadata.gz: e9d80242f91fe629c25abf240fad2890bf245a4e4c4e9bea55e72df035ffaf21bda9c2fa7e8b5f5e9f61bd71347b0749cc8ba958857869d866041bc799a6d4af
7
+ data.tar.gz: b6066dd26eef05b2b2b4ca4ea05ba5c641865fa00a07c891786cdb585072785f50b18a44532c4afc24e3e2366dd78fe91b2567d01377286af2664726e4135725
data/README.md CHANGED
@@ -21,6 +21,17 @@ CKEditor 5 Ruby on Rails integration gem. Provides seamless integration of CKEdi
21
21
  <img src="docs/intro-classic-editor.png" alt="CKEditor 5 Classic Editor in Ruby on Rails application">
22
22
  </p>
23
23
 
24
+ ## Psst... 👀
25
+
26
+ If you're looking for similar stuff, check these out:
27
+
28
+ * [ckeditor5-phoenix](https://github.com/Mati365/ckeditor5-phoenix)
29
+ Seamless CKEditor 5 integration for Phoenix Framework. Plug & play support for LiveView forms with dynamic content, localization, and custom builds.
30
+
31
+ * [ckeditor5-livewire](https://github.com/Mati365/ckeditor5-livewire)
32
+ Drop-in CKEditor 5 solution for Laravel + Livewire apps. Works great with Blade forms too. Includes JS hooks, flexible config, and easy customization.
33
+
34
+
24
35
  ## Installation 🛠️
25
36
 
26
37
  Add this line to your application's Gemfile:
@@ -91,7 +102,7 @@ CKEditor5::Rails.configure do
91
102
 
92
103
  # Optionally, you can specify version of CKEditor 5 to use.
93
104
  # If it's not specified the default version specified in the gem will be used.
94
- # version '45.2.1'
105
+ # version '46.0.1'
95
106
 
96
107
  # Upload images to the server using the simple upload adapter, instead of Base64 encoding.
97
108
  # simple_upload_adapter
@@ -216,7 +227,7 @@ You can create your own by defining it in the `config/initializers/ckeditor5.rb`
216
227
 
217
228
  CKEditor5::Rails.configure do
218
229
  # It's possible to override the default preset right in the initializer.
219
- version '45.2.1'
230
+ version '46.0.1'
220
231
 
221
232
  # New presets inherit properties from the default preset defined in the initializer.
222
233
  # In this example, the custom preset inherits everything from default but disables the menubar:
@@ -226,7 +237,7 @@ CKEditor5::Rails.configure do
226
237
 
227
238
  # In order to define preset from scratch, you can use the `inherit: false` option.
228
239
  presets.define :blank_preset, inherit: false do
229
- version '45.2.1'
240
+ version '46.0.1'
230
241
 
231
242
  # It tells the integration to fetch the newest security patches and bug fixes.
232
243
  # It may be disabled, but it's highly recommended to keep it enabled to avoid
@@ -348,7 +359,7 @@ Defines the version of CKEditor 5 to be used. The example below shows how to set
348
359
  CKEditor5::Rails.configure do
349
360
  # ... other configuration
350
361
 
351
- version '45.2.1'
362
+ version '46.0.1'
352
363
  end
353
364
  ```
354
365
 
@@ -360,7 +371,7 @@ In order to disable default patches, you can pass the `apply_patches: false` key
360
371
  CKEditor5::Rails.configure do
361
372
  # ... other configuration
362
373
 
363
- version '45.2.1', apply_patches: false
374
+ version '46.0.1', apply_patches: false
364
375
  end
365
376
  ```
366
377
 
@@ -1340,7 +1351,7 @@ It may be useful when you want to define a preset based on the current user or r
1340
1351
  class ApplicationController < ActionController::Base
1341
1352
  def show
1342
1353
  @preset = ckeditor5_preset do
1343
- version '45.2.1'
1354
+ version '46.0.1'
1344
1355
 
1345
1356
  toolbar :sourceEditing, :|, :bold, :italic, :underline, :strikethrough,
1346
1357
  :subscript, :superscript, :removeFormat, :|, :bulletedList, :numberedList,
@@ -1375,7 +1386,7 @@ If you want to override the preset defined in the initializer, you can search fo
1375
1386
  class ApplicationController < ActionController::Base
1376
1387
  def show
1377
1388
  @preset = ckeditor5_preset(:default).override do
1378
- version '45.2.1'
1389
+ version '46.0.1'
1379
1390
 
1380
1391
  toolbar :sourceEditing, :|, :bold, :italic, :underline, :strikethrough,
1381
1392
  :subscript, :superscript, :removeFormat, :|, :bulletedList, :numberedList,
@@ -1548,7 +1559,7 @@ In that scenario it's recommended to add `gpl` method to the initializer along w
1548
1559
 
1549
1560
  CKEditor5::Rails.configure do
1550
1561
  gpl
1551
- version '45.2.1'
1562
+ version '46.0.1'
1552
1563
  end
1553
1564
  ```
1554
1565
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  module CKEditor5
4
4
  module Rails
5
- VERSION = '1.31.6'
5
+ VERSION = '1.31.8'
6
6
 
7
- DEFAULT_CKEDITOR_VERSION = '45.2.1'
7
+ DEFAULT_CKEDITOR_VERSION = '46.0.1'
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.8
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-08-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails