ckeditor5 1.35.0 → 1.35.1
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 +34 -8
- data/lib/ckeditor5/rails/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 384ec0fadd3143749a408679b80aea46b61c8a8740fb06f2e6b24344f8929626
|
|
4
|
+
data.tar.gz: edc8fb8ddc4e675638edc023ed9a9327d2c931f5c92010b102c5264c2e11aa12
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b5518fa67e4c9fc81d63f477a425b2e8d1479f35966bd053eac26f352f12323f730e40e7274b02f981f6161e80787befe5e6000c1473c4c02f203ffd9255c87b
|
|
7
|
+
data.tar.gz: 70719e1470023116b6714b3c386de48463c8b776ced330599d13feb5e79365c89fdbe810f3dbdd756786f052c8ae1b65267e8959c0d3ffda25410916cdcb79ec
|
data/README.md
CHANGED
|
@@ -96,7 +96,7 @@ CKEditor5::Rails.configure do
|
|
|
96
96
|
|
|
97
97
|
# Optionally, you can specify version of CKEditor 5 to use.
|
|
98
98
|
# If it's not specified the default version specified in the gem will be used.
|
|
99
|
-
# version '47.
|
|
99
|
+
# version '47.6.0'
|
|
100
100
|
|
|
101
101
|
# Upload images to the server using the simple upload adapter, instead of Base64 encoding.
|
|
102
102
|
# simple_upload_adapter
|
|
@@ -110,6 +110,31 @@ end
|
|
|
110
110
|
|
|
111
111
|
Voilà! You have CKEditor 5 integrated with your Rails application. 🎉
|
|
112
112
|
|
|
113
|
+
### If you are not using importmap (custom bundler) 📦
|
|
114
|
+
|
|
115
|
+
If your app uses a custom JS bundler (for example Vite, esbuild, or Webpack), install the npm packages and import the integration in your JavaScript bundle.
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
npm install ckeditor5-rails ckeditor5
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
```js
|
|
122
|
+
// app/javascript/application.js (or your main bundle entry)
|
|
123
|
+
|
|
124
|
+
import 'ckeditor5-rails';
|
|
125
|
+
import 'ckeditor5/ckeditor5.css';
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
If you use premium features, also install `ckeditor5-premium-features` and import its CSS.
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
npm install ckeditor5-premium-features
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
```js
|
|
135
|
+
import 'ckeditor5-premium-features/ckeditor5-premium-features.css';
|
|
136
|
+
```
|
|
137
|
+
|
|
113
138
|
## Try Demos! 🎮 ✨
|
|
114
139
|
|
|
115
140
|
Explore various editor configurations with the interactive [demo application](https://github.com/Mati365/ckeditor5-rails/tree/main/sandbox/app/views/demos). For additional inspiration, visit the official CKEditor 5 [examples](https://ckeditor.com/docs/ckeditor5/latest/examples/builds/classic-editor.html).
|
|
@@ -129,6 +154,7 @@ For extending CKEditor's functionality, refer to the [plugins directory](https:/
|
|
|
129
154
|
|
|
130
155
|
- [CKEditor 5 Rails Integration ✨](#ckeditor-5-rails-integration-)
|
|
131
156
|
- [Installation 🛠️](#installation-️)
|
|
157
|
+
- [If you are not using importmap (custom bundler) 📦](#if-you-are-not-using-importmap-custom-bundler-)
|
|
132
158
|
- [Try Demos! 🎮 ✨](#try-demos--)
|
|
133
159
|
- [Table of Contents 📚](#table-of-contents-)
|
|
134
160
|
- [Presets 🎨](#presets-)
|
|
@@ -223,7 +249,7 @@ You can create your own by defining it in the `config/initializers/ckeditor5.rb`
|
|
|
223
249
|
|
|
224
250
|
CKEditor5::Rails.configure do
|
|
225
251
|
# It's possible to override the default preset right in the initializer.
|
|
226
|
-
version '47.
|
|
252
|
+
version '47.6.0'
|
|
227
253
|
|
|
228
254
|
# New presets inherit properties from the default preset defined in the initializer.
|
|
229
255
|
# In this example, the custom preset inherits everything from default but disables the menubar:
|
|
@@ -233,7 +259,7 @@ CKEditor5::Rails.configure do
|
|
|
233
259
|
|
|
234
260
|
# In order to define preset from scratch, you can use the `inherit: false` option.
|
|
235
261
|
presets.define :blank_preset, inherit: false do
|
|
236
|
-
version '47.
|
|
262
|
+
version '47.6.0'
|
|
237
263
|
|
|
238
264
|
# It tells the integration to fetch the newest security patches and bug fixes.
|
|
239
265
|
# It may be disabled, but it's highly recommended to keep it enabled to avoid
|
|
@@ -355,7 +381,7 @@ Defines the version of CKEditor 5 to be used. The example below shows how to set
|
|
|
355
381
|
CKEditor5::Rails.configure do
|
|
356
382
|
# ... other configuration
|
|
357
383
|
|
|
358
|
-
version '47.
|
|
384
|
+
version '47.6.0'
|
|
359
385
|
end
|
|
360
386
|
```
|
|
361
387
|
|
|
@@ -367,7 +393,7 @@ In order to disable default patches, you can pass the `apply_patches: false` key
|
|
|
367
393
|
CKEditor5::Rails.configure do
|
|
368
394
|
# ... other configuration
|
|
369
395
|
|
|
370
|
-
version '47.
|
|
396
|
+
version '47.6.0', apply_patches: false
|
|
371
397
|
end
|
|
372
398
|
```
|
|
373
399
|
|
|
@@ -1347,7 +1373,7 @@ It may be useful when you want to define a preset based on the current user or r
|
|
|
1347
1373
|
class ApplicationController < ActionController::Base
|
|
1348
1374
|
def show
|
|
1349
1375
|
@preset = ckeditor5_preset do
|
|
1350
|
-
version '47.
|
|
1376
|
+
version '47.6.0'
|
|
1351
1377
|
|
|
1352
1378
|
toolbar :sourceEditing, :|, :bold, :italic, :underline, :strikethrough,
|
|
1353
1379
|
:subscript, :superscript, :removeFormat, :|, :bulletedList, :numberedList,
|
|
@@ -1382,7 +1408,7 @@ If you want to override the preset defined in the initializer, you can search fo
|
|
|
1382
1408
|
class ApplicationController < ActionController::Base
|
|
1383
1409
|
def show
|
|
1384
1410
|
@preset = ckeditor5_preset(:default).override do
|
|
1385
|
-
version '47.
|
|
1411
|
+
version '47.6.0'
|
|
1386
1412
|
|
|
1387
1413
|
toolbar :sourceEditing, :|, :bold, :italic, :underline, :strikethrough,
|
|
1388
1414
|
:subscript, :superscript, :removeFormat, :|, :bulletedList, :numberedList,
|
|
@@ -1555,7 +1581,7 @@ In that scenario it's recommended to add `gpl` method to the initializer along w
|
|
|
1555
1581
|
|
|
1556
1582
|
CKEditor5::Rails.configure do
|
|
1557
1583
|
gpl
|
|
1558
|
-
version '47.
|
|
1584
|
+
version '47.6.0'
|
|
1559
1585
|
end
|
|
1560
1586
|
```
|
|
1561
1587
|
|
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.35.
|
|
4
|
+
version: 1.35.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mateusz Bagiński
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-
|
|
12
|
+
date: 2026-03-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|