trestle-tinymce 0.1.2 → 0.1.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: c7dc11e201036590329d24dfbe078063d5046e95f33cee7d8e8cd81f137bb272
4
- data.tar.gz: ee172f063b4b8dd9b3ed8387a23f8d634a906b1441e785ba1ff495c6042ad8d5
3
+ metadata.gz: b1f727436400f2bf82a7bb0182a870feea2d67698bb098eef1eee1edf6332c9d
4
+ data.tar.gz: f8fea67d77ce86a934b582872fa0ef723cdca00c21a5ac3f00a976c02058e0e7
5
5
  SHA512:
6
- metadata.gz: 86585721365012d2ddb9b1f80de687c9ae36d34334b67853689688003f27708e247681a37b04a40915db991e53f3ca33acffc47b3b2368d24abdb5799cfa27f7
7
- data.tar.gz: fd6bac809c2428eadfb4031c1520376c4133972f1e5ab4e40429142d31d3fc825947e228d5e0bf770381832bed7d094ca522ec805fb628e8d92ed5526c3ef553
6
+ metadata.gz: 93d7f1e812d46c337fc3b47475d0be301df4c44897a1d6a7066953c6fdcc099f6793f08b97190faef4c28ccd6378e9fb6587bc64003cc1dc8a496cf9d4d02401
7
+ data.tar.gz: af54e5d53322d4b29b7d71374e481bec878966683730a5bd5656d41fab9893215911ee0468a615b14183f96e1dedba960bbe6902c67590e87a1675cdc731eedb
@@ -1,5 +1,6 @@
1
1
  Trestle.TinyMCE = {};
2
2
 
3
+ // Initialize TinyMCE on targets within initialization scope
3
4
  Trestle.init(function(e, root) {
4
5
  $(root).find('textarea.tinymce').each(function() {
5
6
  var id = $(this).attr('id');
@@ -9,3 +10,10 @@ Trestle.init(function(e, root) {
9
10
 
10
11
  tinyMCE.init(Trestle.TinyMCE.default);
11
12
  });
13
+
14
+ // Fix focus issues within Bootstrap modals
15
+ $(document).on('focusin', function(e) {
16
+ if ($(e.target).closest(".mce-window").length) {
17
+ e.stopImmediatePropagation();
18
+ }
19
+ });
@@ -1,5 +1,5 @@
1
1
  module Trestle
2
2
  module TinyMCE
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trestle-tinymce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pohlenz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-23 00:00:00.000000000 Z
11
+ date: 2018-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trestle