trestle-tinymce 0.1.1 → 0.1.2

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
- SHA1:
3
- metadata.gz: 2c8229395feba7e14f844eb1d8ef444d352fe4f4
4
- data.tar.gz: 93de07f3bb3060d6c061b3ba1d1b1634fd5e6362
2
+ SHA256:
3
+ metadata.gz: c7dc11e201036590329d24dfbe078063d5046e95f33cee7d8e8cd81f137bb272
4
+ data.tar.gz: ee172f063b4b8dd9b3ed8387a23f8d634a906b1441e785ba1ff495c6042ad8d5
5
5
  SHA512:
6
- metadata.gz: beffffc73ee1c4e351f8abdbda9f53ea243a7edd52c80a73e6f2bdef31011ea9dcb6d24b8c3b6a844f5482d3b2cbc4330097be3bcbb8ee803a7259c3bb4c19b6
7
- data.tar.gz: a921c31124e557c137cc15f8f835a30d1d806723ef93f393c6a83e158a28d18a20cccdf47cb007d5b1129390d9077f5fe1c465ae24f7fc2b999be78b480e8730
6
+ metadata.gz: 86585721365012d2ddb9b1f80de687c9ae36d34334b67853689688003f27708e247681a37b04a40915db991e53f3ca33acffc47b3b2368d24abdb5799cfa27f7
7
+ data.tar.gz: fd6bac809c2428eadfb4031c1520376c4133972f1e5ab4e40429142d31d3fc825947e228d5e0bf770381832bed7d094ca522ec805fb628e8d92ed5526c3ef553
@@ -1,13 +1,11 @@
1
1
  Trestle.TinyMCE = {};
2
2
 
3
- Trestle.ready(function() {
4
- function init() {
5
- if (typeof(tinyMCE) !== 'undefined') {
6
- tinyMCE.init(Trestle.TinyMCE.default);
7
- } else {
8
- setTimeout(init, 50);
9
- }
10
- }
3
+ Trestle.init(function(e, root) {
4
+ $(root).find('textarea.tinymce').each(function() {
5
+ var id = $(this).attr('id');
6
+ var editor = tinyMCE.get(id);
7
+ if (editor) { editor.remove(); }
8
+ });
11
9
 
12
- init();
10
+ tinyMCE.init(Trestle.TinyMCE.default);
13
11
  });
@@ -27,7 +27,7 @@ Trestle.configure do |config|
27
27
  end
28
28
 
29
29
  config.hook(:javascripts) do
30
- config = TinyMCE::Rails::Configuration.new(Trestle.config.tinymce.default.options)
30
+ config = TinyMCE::Rails::Configuration.new(Trestle.config.tinymce.default.as_json.with_indifferent_access)
31
31
 
32
32
  tinymce_assets +
33
33
  javascript_include_tag("trestle/tinymce") +
@@ -1,5 +1,5 @@
1
1
  module Trestle
2
2
  module TinyMCE
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "trestle", "~> 0.8"
21
+ spec.add_dependency "trestle", "~> 0.8", ">= 0.8.8"
22
22
  spec.add_dependency "tinymce-rails", "~> 4.6"
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.15"
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pohlenz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-24 00:00:00.000000000 Z
11
+ date: 2018-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trestle
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.8'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.8.8
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0.8'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.8.8
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: tinymce-rails
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -193,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
199
  version: '0'
194
200
  requirements: []
195
201
  rubyforge_project:
196
- rubygems_version: 2.6.12
202
+ rubygems_version: 2.7.6
197
203
  signing_key:
198
204
  specification_version: 4
199
205
  summary: TinyMCE integration plugin for the Trestle admin framework