ckeditor5 1.15.2 → 1.15.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: b26a617fa5ece35858dee8b02c715443a8bcbb53d68c3529e216d548341c02ee
4
- data.tar.gz: 86c363e6f59edf4c09f903cdee2a5a27f1216bd8d41d6063bdd7795bd2c6f665
3
+ metadata.gz: b5d8c6e89ee351853938c5119d6c8f37385b2762f086e59da587908a8b851b84
4
+ data.tar.gz: 11ad938e354484d7e91589abb4172c91e5bb072c5e03308f2b08283f5d8e9844
5
5
  SHA512:
6
- metadata.gz: bdae106877e0d80c74af702ed133842ec3f4367f7f0f1f5e6d27ba1508f6e9bc0b006c87254110051790c7d2ea236cbb3a0650d8613b31eb728efef01769cf43
7
- data.tar.gz: d82752dffffa42e16575c0b63594c66dd6f0123203d01caa44a885ae7410e0435c1329b4f9edff72bef2f852ea8ca1a190ecbfd30a845662b7b9a57a34176763
6
+ metadata.gz: 72ba9215eb356fe990ce2897d5040df3308a78596d771b6a64a4f84e3d5ce72f13a1aaea87b0ff227ff1c3e920085b208dcc7d65fcbae3e505800dc3803ae40c
7
+ data.tar.gz: 0a23dbe70db017e3a401faf1e9613fc0086c5564099f43e98344dba34ac54ca87a38ca92bd763fb4c0a37aa4cf8188539e8ae376fe2ad3a1963cd82d05aef478
data/README.md CHANGED
@@ -22,22 +22,6 @@ Add this line to your application's Gemfile:
22
22
  gem 'ckeditor5'
23
23
  ```
24
24
 
25
- In your config (the default config is defined [here](https://github.com/Mati365/ckeditor5-rails/blob/main/lib/ckeditor5/rails/presets/manager.rb)):
26
-
27
- ```rb
28
- # config/initializers/ckeditor5.rb
29
-
30
- CKEditor5::Rails.configure do
31
- # 🔖 Specify the version of editor you want.
32
- # ⚙️ Default configuration includes:
33
- # 📝 Classic editor build
34
- # 🧩 Essential plugins (paragraphs, basic styles)
35
- # 🎛️ Default toolbar layout
36
- # 📜 GPL license
37
- version '43.3.0'
38
- end
39
- ```
40
-
41
25
  In your layout:
42
26
 
43
27
  ```erb
@@ -74,6 +58,25 @@ In your view:
74
58
  <% end %>
75
59
  ```
76
60
 
61
+ (optional) Customize your config (the default config is defined [here](https://github.com/Mati365/ckeditor5-rails/blob/main/lib/ckeditor5/rails/presets/manager.rb)):
62
+
63
+ ```rb
64
+ # config/initializers/ckeditor5.rb
65
+
66
+ CKEditor5::Rails.configure do
67
+ # 🔖 Specify the version of editor you want.
68
+ # ⚙️ Default configuration includes:
69
+ # 📝 Classic editor build
70
+ # 🧩 Essential plugins (paragraphs, basic styles)
71
+ # 🎛️ Default toolbar layout
72
+ # 📜 GPL license
73
+
74
+ # Optionally, you can specify version of CKEditor 5 to use.
75
+ # If it's not specified the default version specified in the gem will be used.
76
+ # version '43.3.1'
77
+ end
78
+ ```
79
+
77
80
  Voilà! You have CKEditor 5 integrated with your Rails application. 🎉
78
81
 
79
82
  ## Try Our Demos! 🎮 ✨
@@ -169,7 +172,7 @@ You can create your own by defining it in the `config/initializers/ckeditor5.rb`
169
172
 
170
173
  CKEditor5::Rails.configure do
171
174
  # It's possible to override the default preset right in the initializer.
172
- version '43.3.0'
175
+ version '43.3.1'
173
176
 
174
177
  # New presets inherit properties from the default preset defined in the initializer.
175
178
  # In this example, the custom preset inherits everything from default but disables the menubar:
@@ -179,7 +182,7 @@ CKEditor5::Rails.configure do
179
182
 
180
183
  # In order to define preset from scratch, you can use the `inherit: false` option.
181
184
  presets.define :blank_preset, inherit: false do
182
- version '44.0.0'
185
+ version '43.3.1'
183
186
 
184
187
  # It tells the integration to fetch the newest security patches and bug fixes.
185
188
  # It may be disabled, but it's highly recommended to keep it enabled to avoid
@@ -288,7 +291,7 @@ Defines the version of CKEditor 5 to be used. The example below shows how to set
288
291
  CKEditor5::Rails.configure do
289
292
  # ... other configuration
290
293
 
291
- version '43.2.0'
294
+ version '43.3.1'
292
295
  end
293
296
  ```
294
297
 
@@ -689,7 +692,7 @@ The `ckeditor5_preset` method allows you to define a custom preset in your appli
689
692
  class ApplicationController < ActionController::Base
690
693
  def show
691
694
  @preset = ckeditor5_preset do
692
- version '43.3.0'
695
+ version '43.3.1'
693
696
 
694
697
  toolbar :sourceEditing, :|, :bold, :italic, :underline, :strikethrough,
695
698
  :subscript, :superscript, :removeFormat, :|, :bulletedList, :numberedList,
@@ -835,7 +838,7 @@ In that scenario it's recommended to add `gpl` method to the initializer along w
835
838
 
836
839
  CKEditor5::Rails.configure do
837
840
  gpl
838
- version '43.3.0'
841
+ version '43.3.1'
839
842
  end
840
843
  ```
841
844
 
@@ -42,6 +42,8 @@ module CKEditor5::Rails::Presets
42
42
 
43
43
  def define_default_preset # rubocop:disable Metrics/MethodLength
44
44
  define :default do
45
+ version CKEditor5::Rails::DEFAULT_CKEDITOR_VERSION
46
+
45
47
  automatic_upgrades
46
48
  gpl
47
49
  type :classic
@@ -2,6 +2,8 @@
2
2
 
3
3
  module CKEditor5
4
4
  module Rails
5
- VERSION = '1.15.2'
5
+ VERSION = '1.15.7'
6
+
7
+ DEFAULT_CKEDITOR_VERSION = '43.3.1'
6
8
  end
7
9
  end
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.15.2
4
+ version: 1.15.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Bagiński