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 +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: 127f81c39ea4df2b13a4095bd335f7b8698549249851de0f90ed948e309b2ca0
|
4
|
+
data.tar.gz: cd9711cd4b70b4c89091b166a694065973b4d12eff6d587e8cb761abdcd5b43e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
|