alchemy_cms 7.0.0 → 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82ad696b6ce7f6cb6abd94cba68e8b00dbee69ae087afeec0ff8ac851e0e2d20
4
- data.tar.gz: 5dc84ef100d7c09ca4328c68c50e2defa25dd8c87f25afbb0927134692da5ac9
3
+ metadata.gz: 3f0cc418c39ce5701b162c99be3ffdd6fd0a7ccffa37cae44df6632f282b3387
4
+ data.tar.gz: acccc64201262b7caca16131104d5e5edf64ff44a7b11770f210b6aa4037dfb4
5
5
  SHA512:
6
- metadata.gz: 4c2f641200be5634ff92ce977b7f067a68438ef221e0402c72c3aca0f0aa055b2e54bc604779eceef97442051b53414acdf8c5e67cdc8996d81e246ce1ce460b
7
- data.tar.gz: 237943716710431905599a475dd2a02e69695ec6debbb0105157208c041878bb287bff7868e8233a95ffed68f50ac5822a64bfe522d2b288341d713de24631e5
6
+ metadata.gz: '062183faa7a2519e5727ca492ee2e9cf34763b4c016a1e1eb9790d04a03e81e68bd2f37ca09f738251baf9ad4d07f4ff9ab04c9851139b5313ecb34f3d079886'
7
+ data.tar.gz: 7fd8da93df4758470ac57fd457469be08420c2740547b5c64c571fa7c0fae19be7460ba3ff2ba88a225f5c4d7d75a0351039d66962ed091736def00b09450006
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.0.1 (2023-07-07)
4
+
5
+ - Fix disconnecting Tinymce intersection observer [#2519](https://github.com/AlchemyCMS/alchemy_cms/pull/2519) ([tvdeyen](https://github.com/tvdeyen))
6
+
3
7
  ## 7.0.0 (2023-07-05)
4
8
 
5
9
  - Remove old alchemy_admin files from sprockets builds [#2517](https://github.com/AlchemyCMS/alchemy_cms/pull/2517) ([tvdeyen](https://github.com/tvdeyen))
@@ -52,5 +52,6 @@ $(document).on 'turbo:load', ->
52
52
 
53
53
  $(document).on 'turbo:before-fetch-request', ->
54
54
  # Ensure that all tinymce editors get removed before parsing a new page
55
+ Alchemy.Tinymce.removeIntersectionObserver()
55
56
  Alchemy.Tinymce.removeFrom $('.has_tinymce')
56
57
  return
@@ -41,10 +41,6 @@ function initEditors(ids) {
41
41
  // initialize IntersectionObserver
42
42
  // the observer will initialize Tinymce if the textarea becomes visible
43
43
  function initializeIntersectionObserver() {
44
- if (tinymceIntersectionObserver !== null) {
45
- tinymceIntersectionObserver.disconnect()
46
- }
47
-
48
44
  const observerCallback = (entries, observer) => {
49
45
  entries.forEach((entry) => {
50
46
  if (entry.intersectionRatio > 0) {
@@ -108,6 +104,12 @@ function removeEditor(editorId) {
108
104
  }
109
105
  }
110
106
 
107
+ function removeIntersectionObserver() {
108
+ if (tinymceIntersectionObserver !== null) {
109
+ tinymceIntersectionObserver.disconnect()
110
+ }
111
+ }
112
+
111
113
  export default {
112
114
  // Initializes all TinyMCE editors with given ids
113
115
  //
@@ -135,6 +137,8 @@ export default {
135
137
  })
136
138
  },
137
139
 
140
+ removeIntersectionObserver,
141
+
138
142
  // set tinymce configuration for a given selector key
139
143
  setCustomConfig(key, configuration) {
140
144
  tinymceCustomConfigs[key] = configuration
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "7.0.0"
4
+ VERSION = "7.0.1"
5
5
 
6
6
  def self.version
7
7
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2023-07-05 00:00:00.000000000 Z
16
+ date: 2023-07-07 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: actionmailer