ckeditor5 1.20.0 → 1.20.1

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: e314a874501f623577e3e18a2d69aad4c1d1c901cf2aea3b7feb51d1b854f8cc
4
- data.tar.gz: 42cb9fca3c8206ea2cba20b0d3229f06bc8420075f49da795849032bdad06da4
3
+ metadata.gz: f5a5f9a3ade293a0c872a6fa77b20acd227133d66728bafcc0e6e20e7e55e3b2
4
+ data.tar.gz: d6cb12217a822993bf1fe8487143c2debdea4061dc1c72424dbef052f78cb216
5
5
  SHA512:
6
- metadata.gz: f99b51b674897abae5b231e5e34f71a4e64963a2a88b16ef9f5f00dba1a9f17998f5bbfd7a4e1a19c6abd6716601f4c0bcbb978003a04938d2fa1a5b4ebbdf28
7
- data.tar.gz: 050a3bf881dca0d54e186fe01066c8b7a4112d0f818e84f80de4ba8301cdd53500dc88cef800259ea9b2c1b0a23a42f93d3cce4fe0618206540a9bc9281222a8
6
+ metadata.gz: d985a26adaaf6a86490ab603a4a50fb7c9c06fdd749f48501763dde0c8eaed14bc6989464bc55589b5be90ecb2ac5a8d4b95f259c71df91957799b80e67c0d04
7
+ data.tar.gz: 149b7da93c090b45cf1c687b96d3579505ba9c131dd3cca2baae6ac995eaff5da99696be3944197e49012abd2c34140abc9de889703018cc4a6505669c2a7ee5
data/README.md CHANGED
@@ -30,7 +30,12 @@ In your layout:
30
30
  <!DOCTYPE html>
31
31
  <html>
32
32
  <head>
33
- <!-- ⚠️ If you use `rails-importmap` you have to include the importmap somewhere in the head. -->
33
+ <!--
34
+ ⚠️ **Important**: When using `importmap-rails`, make sure the importmap
35
+ tags are rendered after `ckeditor5_assets` helper. The importmap must
36
+ be included in the head section to ensure proper loading order.
37
+ This is crucial for CKEditor 5 to work correctly.
38
+ -->
34
39
  <%= javascript_importmap_tags %>
35
40
  <%= yield :head %>
36
41
  </head>
@@ -76,7 +81,7 @@ CKEditor5::Rails.configure do
76
81
 
77
82
  # Optionally, you can specify version of CKEditor 5 to use.
78
83
  # If it's not specified the default version specified in the gem will be used.
79
- # version '43.3.1'
84
+ # version '44.0.0'
80
85
 
81
86
  # Upload images to the server using the simple upload adapter, instead of Base64 encoding.
82
87
  # simple_upload_adapter
@@ -190,7 +195,7 @@ You can create your own by defining it in the `config/initializers/ckeditor5.rb`
190
195
 
191
196
  CKEditor5::Rails.configure do
192
197
  # It's possible to override the default preset right in the initializer.
193
- version '43.3.1'
198
+ version '44.0.0'
194
199
 
195
200
  # New presets inherit properties from the default preset defined in the initializer.
196
201
  # In this example, the custom preset inherits everything from default but disables the menubar:
@@ -200,7 +205,7 @@ CKEditor5::Rails.configure do
200
205
 
201
206
  # In order to define preset from scratch, you can use the `inherit: false` option.
202
207
  presets.define :blank_preset, inherit: false do
203
- version '43.3.1'
208
+ version '44.0.0'
204
209
 
205
210
  # It tells the integration to fetch the newest security patches and bug fixes.
206
211
  # It may be disabled, but it's highly recommended to keep it enabled to avoid
@@ -322,7 +327,7 @@ Defines the version of CKEditor 5 to be used. The example below shows how to set
322
327
  CKEditor5::Rails.configure do
323
328
  # ... other configuration
324
329
 
325
- version '43.3.1'
330
+ version '44.0.0'
326
331
  end
327
332
  ```
328
333
  </details>
@@ -989,7 +994,7 @@ It may be useful when you want to define a preset based on the current user or r
989
994
  class ApplicationController < ActionController::Base
990
995
  def show
991
996
  @preset = ckeditor5_preset do
992
- version '43.3.1'
997
+ version '44.0.0'
993
998
 
994
999
  toolbar :sourceEditing, :|, :bold, :italic, :underline, :strikethrough,
995
1000
  :subscript, :superscript, :removeFormat, :|, :bulletedList, :numberedList,
@@ -1024,7 +1029,7 @@ If you want to override the preset defined in the initializer, you can search fo
1024
1029
  class ApplicationController < ActionController::Base
1025
1030
  def show
1026
1031
  @preset = ckeditor5_preset(:default).override do
1027
- version '43.3.1'
1032
+ version '44.0.0'
1028
1033
 
1029
1034
  toolbar :sourceEditing, :|, :bold, :italic, :underline, :strikethrough,
1030
1035
  :subscript, :superscript, :removeFormat, :|, :bulletedList, :numberedList,
@@ -1160,7 +1165,7 @@ In that scenario it's recommended to add `gpl` method to the initializer along w
1160
1165
 
1161
1166
  CKEditor5::Rails.configure do
1162
1167
  gpl
1163
- version '43.3.1'
1168
+ version '44.0.0'
1164
1169
  end
1165
1170
  ```
1166
1171
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  module CKEditor5
4
4
  module Rails
5
- VERSION = '1.20.0'
5
+ VERSION = '1.20.1'
6
6
 
7
- DEFAULT_CKEDITOR_VERSION = '43.3.1'
7
+ DEFAULT_CKEDITOR_VERSION = '44.0.0'
8
8
  end
9
9
  end
@@ -104,20 +104,6 @@ RSpec.describe CKEditor5::Rails::Engine do
104
104
  end
105
105
 
106
106
  describe 'importmap initializer' do
107
- context 'when Importmap is defined' do
108
- module Importmap # rubocop:disable Lint/ConstantDefinitionInBlock
109
- module ImportmapTagsHelper; end
110
- end
111
-
112
- it 'prepends CKEditor5 importmap helper' do
113
- initializer = described_class.initializers.find { |i| i.name == 'ckeditor5.importmap' }
114
- initializer.run(Rails.application)
115
-
116
- expect(Importmap::ImportmapTagsHelper.ancestors)
117
- .to include(CKEditor5::Rails::Hooks::Importmap::ImportmapTagsHelper)
118
- end
119
- end
120
-
121
107
  context 'when Importmap is not defined' do
122
108
  before do
123
109
  @importmap = Importmap if defined?(Importmap)
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.20.0
4
+ version: 1.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Bagiński