ckeditor5 1.20.0 → 1.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -8
- data/lib/ckeditor5/rails/version.rb +2 -2
- data/spec/lib/ckeditor5/rails/engine_spec.rb +0 -14
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5a5f9a3ade293a0c872a6fa77b20acd227133d66728bafcc0e6e20e7e55e3b2
|
4
|
+
data.tar.gz: d6cb12217a822993bf1fe8487143c2debdea4061dc1c72424dbef052f78cb216
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
<!--
|
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 '
|
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 '
|
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 '
|
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 '
|
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 '
|
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 '
|
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 '
|
1168
|
+
version '44.0.0'
|
1164
1169
|
end
|
1165
1170
|
```
|
1166
1171
|
|
@@ -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)
|