ckeditor5 1.15.1 → 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 +31 -21
- data/lib/ckeditor5/rails/presets/manager.rb +2 -0
- data/lib/ckeditor5/rails/version.rb +3 -1
- metadata +5 -5
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,21 +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
|
-
version '43.3.0' # 🔖 Specify the version of editor you want.
|
32
|
-
# ⚙️ Configuration includes:
|
33
|
-
# 📝 Classic editor build
|
34
|
-
# 🧩 Essential plugins (paragraphs, basic styles)
|
35
|
-
# 🎛️ Default toolbar layout
|
36
|
-
# 📜 GPL license
|
37
|
-
end
|
38
|
-
```
|
39
|
-
|
40
25
|
In your layout:
|
41
26
|
|
42
27
|
```erb
|
@@ -63,8 +48,33 @@ In your view:
|
|
63
48
|
<%= ckeditor5_assets %>
|
64
49
|
<% end %>
|
65
50
|
|
66
|
-
<!-- 🖋️
|
51
|
+
<!-- 🖋️ CKEditor 5 might be placed using simple view helper ... -->
|
67
52
|
<%= ckeditor5_editor %>
|
53
|
+
|
54
|
+
<!-- ... or using form input helper -->
|
55
|
+
|
56
|
+
<%= form_for @post do |f| %>
|
57
|
+
<%= f.ckeditor5 :content, required: true %>
|
58
|
+
<% end %>
|
59
|
+
```
|
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
|
68
78
|
```
|
69
79
|
|
70
80
|
Voilà! You have CKEditor 5 integrated with your Rails application. 🎉
|
@@ -162,7 +172,7 @@ You can create your own by defining it in the `config/initializers/ckeditor5.rb`
|
|
162
172
|
|
163
173
|
CKEditor5::Rails.configure do
|
164
174
|
# It's possible to override the default preset right in the initializer.
|
165
|
-
version '43.3.
|
175
|
+
version '43.3.1'
|
166
176
|
|
167
177
|
# New presets inherit properties from the default preset defined in the initializer.
|
168
178
|
# In this example, the custom preset inherits everything from default but disables the menubar:
|
@@ -172,7 +182,7 @@ CKEditor5::Rails.configure do
|
|
172
182
|
|
173
183
|
# In order to define preset from scratch, you can use the `inherit: false` option.
|
174
184
|
presets.define :blank_preset, inherit: false do
|
175
|
-
version '
|
185
|
+
version '43.3.1'
|
176
186
|
|
177
187
|
# It tells the integration to fetch the newest security patches and bug fixes.
|
178
188
|
# It may be disabled, but it's highly recommended to keep it enabled to avoid
|
@@ -281,7 +291,7 @@ Defines the version of CKEditor 5 to be used. The example below shows how to set
|
|
281
291
|
CKEditor5::Rails.configure do
|
282
292
|
# ... other configuration
|
283
293
|
|
284
|
-
version '43.
|
294
|
+
version '43.3.1'
|
285
295
|
end
|
286
296
|
```
|
287
297
|
|
@@ -682,7 +692,7 @@ The `ckeditor5_preset` method allows you to define a custom preset in your appli
|
|
682
692
|
class ApplicationController < ActionController::Base
|
683
693
|
def show
|
684
694
|
@preset = ckeditor5_preset do
|
685
|
-
version '43.3.
|
695
|
+
version '43.3.1'
|
686
696
|
|
687
697
|
toolbar :sourceEditing, :|, :bold, :italic, :underline, :strikethrough,
|
688
698
|
:subscript, :superscript, :removeFormat, :|, :bulletedList, :numberedList,
|
@@ -828,7 +838,7 @@ In that scenario it's recommended to add `gpl` method to the initializer along w
|
|
828
838
|
|
829
839
|
CKEditor5::Rails.configure do
|
830
840
|
gpl
|
831
|
-
version '43.3.
|
841
|
+
version '43.3.1'
|
832
842
|
end
|
833
843
|
```
|
834
844
|
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ckeditor5
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.15.
|
4
|
+
version: 1.15.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mateusz Bagiński
|
8
8
|
- Łukasz Modliński
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
date: 2024-11-21 00:00:00.000000000 Z
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '9.0'
|
34
|
-
description:
|
34
|
+
description:
|
35
35
|
email: cziken58@gmail.com
|
36
36
|
executables: []
|
37
37
|
extensions: []
|
@@ -82,7 +82,7 @@ homepage: https://github.com/Mati365/ckeditor5-rails
|
|
82
82
|
licenses:
|
83
83
|
- GPL-2.0
|
84
84
|
metadata: {}
|
85
|
-
post_install_message:
|
85
|
+
post_install_message:
|
86
86
|
rdoc_options: []
|
87
87
|
require_paths:
|
88
88
|
- lib
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubygems_version: 3.5.22
|
101
|
-
signing_key:
|
101
|
+
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: CKEditor 5 for Rails
|
104
104
|
test_files:
|