ckeditor5 1.15.2 → 1.15.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b26a617fa5ece35858dee8b02c715443a8bcbb53d68c3529e216d548341c02ee
4
- data.tar.gz: 86c363e6f59edf4c09f903cdee2a5a27f1216bd8d41d6063bdd7795bd2c6f665
3
+ metadata.gz: 127f81c39ea4df2b13a4095bd335f7b8698549249851de0f90ed948e309b2ca0
4
+ data.tar.gz: cd9711cd4b70b4c89091b166a694065973b4d12eff6d587e8cb761abdcd5b43e
5
5
  SHA512:
6
- metadata.gz: bdae106877e0d80c74af702ed133842ec3f4367f7f0f1f5e6d27ba1508f6e9bc0b006c87254110051790c7d2ea236cbb3a0650d8613b31eb728efef01769cf43
7
- data.tar.gz: d82752dffffa42e16575c0b63594c66dd6f0123203d01caa44a885ae7410e0435c1329b4f9edff72bef2f852ea8ca1a190ecbfd30a845662b7b9a57a34176763
6
+ metadata.gz: 0b0fd8c78086d0f46b10b63a01a6394b493958d82d022d9cdebae203df0f57fbe396ed02609fc7049d0dbf6415deb8a35eddc88593dcbda51a84f0ae3fbf4f56
7
+ data.tar.gz: 8eeea41e9de0d98c7d3613c915f3fb7e93bb55fd80ebe24aa97d7a3761af1a9ed0f6a1f4e502dcff53bc11d4eb04f7776f26d768da2adfdfe73868f1becd3b65
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.8'
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.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Bagiński