ckeditor5 1.29.1 → 1.29.2
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 +4 -4
- data/README.md +14 -12
- data/lib/ckeditor5/rails/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b38d2ecbbcf76c7aaed4dcd2ffacfb0d231448c5bb77cc45321547591be47744
|
4
|
+
data.tar.gz: 213130a96df2e7bfd30777443f26f841fe7900b4859e17d1c47f33159ecd92f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7949733e1c3355c2e6a59c058d43355275bac8b720c4f7c9072f273eb6ebc7e1c405a654ee6e5db9a9873cf387fdfd4706d61f82b7f11086a352fd3ac1815f4
|
7
|
+
data.tar.gz: de5ecb9fad00f7a9a14f0c500d936a5b2a3d67b202e5fe6a922c232c8b8c8f50873c7bc9fb5ffb3b21f214d287cf01662740692a872707eae9ea16602e29d5f4
|
data/README.md
CHANGED
@@ -87,7 +87,7 @@ CKEditor5::Rails.configure do
|
|
87
87
|
|
88
88
|
# Optionally, you can specify version of CKEditor 5 to use.
|
89
89
|
# If it's not specified the default version specified in the gem will be used.
|
90
|
-
# version '
|
90
|
+
# version '45.0.0'
|
91
91
|
|
92
92
|
# Upload images to the server using the simple upload adapter, instead of Base64 encoding.
|
93
93
|
# simple_upload_adapter
|
@@ -210,7 +210,7 @@ You can create your own by defining it in the `config/initializers/ckeditor5.rb`
|
|
210
210
|
|
211
211
|
CKEditor5::Rails.configure do
|
212
212
|
# It's possible to override the default preset right in the initializer.
|
213
|
-
version '
|
213
|
+
version '45.0.0'
|
214
214
|
|
215
215
|
# New presets inherit properties from the default preset defined in the initializer.
|
216
216
|
# In this example, the custom preset inherits everything from default but disables the menubar:
|
@@ -220,7 +220,7 @@ CKEditor5::Rails.configure do
|
|
220
220
|
|
221
221
|
# In order to define preset from scratch, you can use the `inherit: false` option.
|
222
222
|
presets.define :blank_preset, inherit: false do
|
223
|
-
version '
|
223
|
+
version '45.0.0'
|
224
224
|
|
225
225
|
# It tells the integration to fetch the newest security patches and bug fixes.
|
226
226
|
# It may be disabled, but it's highly recommended to keep it enabled to avoid
|
@@ -342,7 +342,7 @@ Defines the version of CKEditor 5 to be used. The example below shows how to set
|
|
342
342
|
CKEditor5::Rails.configure do
|
343
343
|
# ... other configuration
|
344
344
|
|
345
|
-
version '
|
345
|
+
version '45.0.0'
|
346
346
|
end
|
347
347
|
```
|
348
348
|
|
@@ -712,7 +712,9 @@ It is useful when you want to use Balloon Editor or Balloon Toolbar features.
|
|
712
712
|
|
713
713
|
<br />
|
714
714
|
|
715
|
-
Defines the visibility of the menubar. By default, it's set to `true`.
|
715
|
+
Defines the visibility of the menubar. By default, it's set to `true`. In order to hide the menubar, you can pass the `visible: false` keyword argument.
|
716
|
+
|
717
|
+
The example below shows how to set the menubar visibility:
|
716
718
|
|
717
719
|
```rb
|
718
720
|
# config/initializers/ckeditor5.rb
|
@@ -720,9 +722,7 @@ Defines the visibility of the menubar. By default, it's set to `true`.
|
|
720
722
|
CKEditor5::Rails.configure do
|
721
723
|
# ... other configuration
|
722
724
|
|
723
|
-
|
724
|
-
:link, :insertImage, :ckbox, :mediaEmbed, :insertTable, :blockQuote, :|,
|
725
|
-
:bulletedList, :numberedList, :todoList, :outdent, :indent
|
725
|
+
menubar visible: false
|
726
726
|
end
|
727
727
|
```
|
728
728
|
</details>
|
@@ -868,7 +868,9 @@ end
|
|
868
868
|
|
869
869
|
<br />
|
870
870
|
|
871
|
-
⚠️ **Warning:** Use with caution as this is an inline definition of the plugin code, and it can potentially cause XSS vulnerabilities. Only use this method with static, trusted JavaScript code.
|
871
|
+
⚠️ **Warning:** Use with caution as this is an inline definition of the plugin code, and it can potentially cause XSS vulnerabilities. Only use this method with static, trusted JavaScript code. In order to pass some dynamic data to such plugin, you can use the `configure` method and override the selected preset in your controller.
|
872
|
+
|
873
|
+
The example below shows how to define a custom plugin that doesn't do anything:
|
872
874
|
|
873
875
|
```rb
|
874
876
|
# config/initializers/ckeditor5.rb
|
@@ -1261,7 +1263,7 @@ It may be useful when you want to define a preset based on the current user or r
|
|
1261
1263
|
class ApplicationController < ActionController::Base
|
1262
1264
|
def show
|
1263
1265
|
@preset = ckeditor5_preset do
|
1264
|
-
version '
|
1266
|
+
version '45.0.0'
|
1265
1267
|
|
1266
1268
|
toolbar :sourceEditing, :|, :bold, :italic, :underline, :strikethrough,
|
1267
1269
|
:subscript, :superscript, :removeFormat, :|, :bulletedList, :numberedList,
|
@@ -1296,7 +1298,7 @@ If you want to override the preset defined in the initializer, you can search fo
|
|
1296
1298
|
class ApplicationController < ActionController::Base
|
1297
1299
|
def show
|
1298
1300
|
@preset = ckeditor5_preset(:default).override do
|
1299
|
-
version '
|
1301
|
+
version '45.0.0'
|
1300
1302
|
|
1301
1303
|
toolbar :sourceEditing, :|, :bold, :italic, :underline, :strikethrough,
|
1302
1304
|
:subscript, :superscript, :removeFormat, :|, :bulletedList, :numberedList,
|
@@ -1469,7 +1471,7 @@ In that scenario it's recommended to add `gpl` method to the initializer along w
|
|
1469
1471
|
|
1470
1472
|
CKEditor5::Rails.configure do
|
1471
1473
|
gpl
|
1472
|
-
version '
|
1474
|
+
version '45.0.0'
|
1473
1475
|
end
|
1474
1476
|
```
|
1475
1477
|
|
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.29.
|
4
|
+
version: 1.29.2
|
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-
|
12
|
+
date: 2025-04-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|