ckeditor5 1.27.2 → 1.27.3

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: 33d6497e8df86eb181f2ef10d462941c777e42a1896c8fd972c957383cdbda3b
4
- data.tar.gz: d4a752edc043709ae4cf442ba65a276d44a5296a0fbd4e040370656fa383164f
3
+ metadata.gz: 2b73e7a07562a8531b071c5d39c8c051cf00a6566d81a6aa78aa791e9943e900
4
+ data.tar.gz: 5e1ead26d24e2d31b9696cba63b395e8f34c4ea408f27ebedf9498efff97326b
5
5
  SHA512:
6
- metadata.gz: 1748af28f3bbfb57eff0ef29d59e309ee0a8a16909e789f6ae6b861ef5cfc40ff8aa2d433851a8f365ee2186000e117df957749362648f253b494a884a7d3690
7
- data.tar.gz: 04bc6c662455fb4393b429843f00a4f75e91ee30c54eb68fc16394ba32d09dfc023b530ea801558dbe3dfa9311bb637010cc9da8c43351749d9ee9a82ae61402
6
+ metadata.gz: 8af4082843903c3adf3a378c35673107eeb4fc916f184cb6c2ec2611b35b4e75df9165be1b14746dd1998710c8a1852faabaad0c0e476dc749ecb8273dbf3b96
7
+ data.tar.gz: 93c2f1c02c4f4c7fcefec7d281e0172be0965ed078feb6484acc50060659a8afd235c4def5053a8e3280028f1d3f4ea71746339d775c4d3cd1d3546422c0c99c
@@ -20,9 +20,11 @@ module CKEditor5::Rails
20
20
  Engine.presets.to_h.values.flat_map { |p| p.plugins.items }
21
21
  end
22
22
 
23
- initializers = plugins.filter_map do |plugin|
24
- next unless plugin.is_a?(Editor::PropsInlinePlugin)
25
-
23
+ # Filter inline plugins and deduplicate by name in one chain
24
+ initializers = plugins
25
+ .select { |plugin| plugin.is_a?(Editor::PropsInlinePlugin) }
26
+ .uniq(&:name)
27
+ .map do |plugin|
26
28
  Editor::InlinePluginWindowInitializer.new(plugin).to_html(
27
29
  nonce: content_security_policy_nonce
28
30
  )
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CKEditor5
4
4
  module Rails
5
- VERSION = '1.27.2'
5
+ VERSION = '1.27.3'
6
6
 
7
7
  DEFAULT_CKEDITOR_VERSION = '44.3.0'
8
8
  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.27.2
4
+ version: 1.27.3
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-03-06 00:00:00.000000000 Z
12
+ date: 2025-03-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails