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 +4 -4
- data/README.md +24 -21
- data/lib/ckeditor5/rails/presets/manager.rb +2 -0
- data/lib/ckeditor5/rails/version.rb +3 -1
- 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: b5d8c6e89ee351853938c5119d6c8f37385b2762f086e59da587908a8b851b84
|
|
4
|
+
data.tar.gz: 11ad938e354484d7e91589abb4172c91e5bb072c5e03308f2b08283f5d8e9844
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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 '
|
|
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.
|
|
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.
|
|
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.
|
|
841
|
+
version '43.3.1'
|
|
839
842
|
end
|
|
840
843
|
```
|
|
841
844
|
|