ckeditor5 1.33.3 → 1.34.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9c8dd468f77eb04787d396cc55e1bf369c61169a4c3508a59d0497395e9e2ad
4
- data.tar.gz: 685301d3a514dc26bd3da1e80843468b4942609c24cf3ab4058a4ce965474e95
3
+ metadata.gz: bbf5bf1d21459d7a2d6332d15e1dfc999a93140172c7688e9e50125671e52c7a
4
+ data.tar.gz: 556e87e3a5c9578172e9033f2e6bf1e53592c824e2873a00a4a3cf3c11b46dfa
5
5
  SHA512:
6
- metadata.gz: 38365da8319cdc034def84291fea272214df44c0c9176f803d422cffd55a3256fc2b3587bf8df934207c2115b64e6db29c58190a56d5241167542ed06f5c6551
7
- data.tar.gz: 59f1fedda0480b8b9a4628778a8588e50b1fdad0e0892150fd34639ae15fe5fc6025d0780e6974f8c3b73aa34eb06c32567be0604eaecafed825eeae946b817f
6
+ metadata.gz: 0fb356c3938f3dc1ba66164ab01180ee31215c4f4020eada3c735831e39d3c0dc8d9c826416dd858aa8aebf742d777405e6a4a784b53f2bff008d983261f5f0e
7
+ data.tar.gz: 5b7cec818f2d689d194499531b4f56f2fba8bc2f0b3d06118e700a5a309916bfdf3200999d9880775d2fcf0d2de242dec569929e668ea3f9472adddd7bfe6b4e
data/README.md CHANGED
@@ -2374,6 +2374,8 @@ If you're looking for similar stuff, check these out:
2374
2374
  * [ckeditor5-livewire](https://github.com/Mati365/ckeditor5-livewire)
2375
2375
  Drop-in CKEditor 5 solution for Laravel + Livewire apps. Works great with Blade forms too. Includes JS hooks, flexible config, and easy customization.
2376
2376
 
2377
+ * [ckeditor5-symfony](https://github.com/Mati365/ckeditor5-symfony)
2378
+ Native CKEditor 5 integration for Symfony. Works with Symfony 6.x+, standard forms and Twig. Supports custom builds, multiple editor configurations, asset management, and localization. Designed to be simple, predictable, and framework-native.
2377
2379
 
2378
2380
  ## Trademarks 📜
2379
2381
 
@@ -31,7 +31,12 @@ module CKEditor5::Rails::Context
31
31
 
32
32
  tags = []
33
33
  tags << ckeditor5_inline_plugins_tags(preset)
34
- tags << tag.public_send(:'ckeditor-context-component', **context_props.to_attributes, &block)
34
+ tags << tag.public_send(
35
+ :'ckeditor-context-component',
36
+ 'data-turbo-temporary': true,
37
+ **context_props.to_attributes,
38
+ &block
39
+ )
35
40
 
36
41
  safe_join(tags)
37
42
  end
@@ -85,7 +85,7 @@ module CKEditor5::Rails
85
85
 
86
86
  tag_attributes = html_attributes.merge(editor_props.to_attributes)
87
87
 
88
- tag.public_send(:'ckeditor-component', **tag_attributes, &block)
88
+ tag.public_send(:'ckeditor-component', 'data-turbo-temporary': true, **tag_attributes, &block)
89
89
  end
90
90
 
91
91
  # Creates an editable area for multiroot or decoupled editors.
@@ -96,7 +96,12 @@ module CKEditor5::Rails
96
96
  # @example Creating a named editable area in multiroot editor
97
97
  # <%= ckeditor5_editable 'content', style: 'border: 1px solid gray' %>
98
98
  def ckeditor5_editable(name = nil, **kwargs, &block)
99
- tag.public_send(:'ckeditor-editable-component', name: name, **kwargs, &block)
99
+ tag.public_send(
100
+ :'ckeditor-editable-component',
101
+ 'data-turbo-temporary': true,
102
+ name: name,
103
+ **kwargs, &block
104
+ )
100
105
  end
101
106
 
102
107
  # Creates a UI part component for the editor (toolbar, menubar).
@@ -107,7 +112,12 @@ module CKEditor5::Rails
107
112
  # @example Creating a toolbar component
108
113
  # <%= ckeditor5_ui_part 'toolbar' %>
109
114
  def ckeditor5_ui_part(name, **kwargs, &block)
110
- tag.public_send(:'ckeditor-ui-part-component', name: name, **kwargs, &block)
115
+ tag.public_send(
116
+ :'ckeditor-ui-part-component',
117
+ 'data-turbo-temporary': true,
118
+ name: name,
119
+ **kwargs, &block
120
+ )
111
121
  end
112
122
 
113
123
  # Creates a toolbar component for decoupled editor.
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CKEditor5
4
4
  module Rails
5
- VERSION = '1.33.3'
5
+ VERSION = '1.34.0'
6
6
 
7
7
  DEFAULT_CKEDITOR_VERSION = '47.3.0'
8
8
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ckeditor5-rails",
3
- "version": "1.33.0",
3
+ "version": "1.34.0",
4
4
  "description": "CKEditor 5 integration for Rails Framework",
5
5
  "exports": {
6
6
  ".": {
@@ -238,6 +238,13 @@ RSpec.describe CKEditor5::Rails::Editor::Helpers::Editor do
238
238
  expect(result).to include('preset-license-key')
239
239
  end
240
240
  end
241
+
242
+ context 'turbo temporary attribute' do
243
+ it 'includes data-turbo-temporary attribute in the editor component' do
244
+ result = helper.ckeditor5_editor
245
+ expect(result).to include('data-turbo-temporary="true"')
246
+ end
247
+ end
241
248
  end
242
249
 
243
250
  describe '#ckeditor5_editable' do
@@ -247,6 +254,11 @@ RSpec.describe CKEditor5::Rails::Editor::Helpers::Editor do
247
254
  with: { name: 'content' }
248
255
  )
249
256
  end
257
+
258
+ it 'includes data-turbo-temporary attribute in the editable component' do
259
+ result = helper.ckeditor5_editable('content')
260
+ expect(result).to include('data-turbo-temporary="true"')
261
+ end
250
262
  end
251
263
 
252
264
  describe '#ckeditor5_ui_part' do
@@ -256,6 +268,11 @@ RSpec.describe CKEditor5::Rails::Editor::Helpers::Editor do
256
268
  with: { name: 'toolbar' }
257
269
  )
258
270
  end
271
+
272
+ it 'includes data-turbo-temporary attribute in the ui part component' do
273
+ result = helper.ckeditor5_ui_part('toolbar')
274
+ expect(result).to include('data-turbo-temporary="true"')
275
+ end
259
276
  end
260
277
 
261
278
  describe '#ckeditor5_toolbar' do
@@ -265,6 +282,11 @@ RSpec.describe CKEditor5::Rails::Editor::Helpers::Editor do
265
282
  with: { name: 'toolbar' }
266
283
  )
267
284
  end
285
+
286
+ it 'includes data-turbo-temporary attribute in the toolbar component' do
287
+ result = helper.ckeditor5_toolbar
288
+ expect(result).to include('data-turbo-temporary="true"')
289
+ end
268
290
  end
269
291
 
270
292
  describe '#ckeditor5_menubar' do
@@ -274,5 +296,10 @@ RSpec.describe CKEditor5::Rails::Editor::Helpers::Editor do
274
296
  with: { name: 'menuBarView' }
275
297
  )
276
298
  end
299
+
300
+ it 'includes data-turbo-temporary attribute in the menubar component' do
301
+ result = helper.ckeditor5_menubar
302
+ expect(result).to include('data-turbo-temporary="true"')
303
+ end
277
304
  end
278
305
  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.33.3
4
+ version: 1.34.0
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: 2025-12-04 00:00:00.000000000 Z
12
+ date: 2026-01-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails