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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c7dc11e201036590329d24dfbe078063d5046e95f33cee7d8e8cd81f137bb272
|
4
|
+
data.tar.gz: ee172f063b4b8dd9b3ed8387a23f8d634a906b1441e785ba1ff495c6042ad8d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86585721365012d2ddb9b1f80de687c9ae36d34334b67853689688003f27708e247681a37b04a40915db991e53f3ca33acffc47b3b2368d24abdb5799cfa27f7
|
7
|
+
data.tar.gz: fd6bac809c2428eadfb4031c1520376c4133972f1e5ab4e40429142d31d3fc825947e228d5e0bf770381832bed7d094ca522ec805fb628e8d92ed5526c3ef553
|
@@ -1,13 +1,11 @@
|
|
1
1
|
Trestle.TinyMCE = {};
|
2
2
|
|
3
|
-
Trestle.
|
4
|
-
function
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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.
|
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") +
|
data/trestle-tinymce.gemspec
CHANGED
@@ -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.
|
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:
|
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
|
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
|