administrate-field-ckeditor 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: a8527d029056c2a4e38b30f47e0c3548ed317cf9
4
- data.tar.gz: 6c2e86bfefcd21b87890a5773887d7aa99c1ea4f
3
+ metadata.gz: 2093e5623b17bb2db404b484231be16a8ffd70c2
4
+ data.tar.gz: 27784d69cd7098eb62aec00e5ee39b0006917478
5
5
  SHA512:
6
- metadata.gz: 92170f7dd129854b9cdcbf24814c9b6b2bc0a6027f12dc4b57bdaecc596640da666e8480613dfe90c1117a0cc15bfbf68fc23633154ed70bee168bcb7102fdbe
7
- data.tar.gz: 5c8280b44ca8eb277ae6d30fe318cfb73e0fa2578bac4e4076bf2dad18872e7aee0a5538b043b0daa0ee0a33aeb2483b4bcd92de3687d338517924be250998a3
6
+ metadata.gz: 95f52cf6d294e749604d59e6b5548dbcfc57cefe9fb14cb224541fd62ba287dee6cd11bd0afc0a62890917f1a746ac1f82ec393086f5b85e8a87444e4b775180
7
+ data.tar.gz: 82605aca5bb37e6d9a018bebbd68fec5efad7b6d5122a327b48bd6b84e035004839932cab4691d51c192875391b00f13d003c75d2a487ba724a2456d24d6030a
data/README.md CHANGED
@@ -10,7 +10,7 @@ A plugin for adding [Ckeditor] support in [Administrate].
10
10
  Add to your `Gemfile`:
11
11
 
12
12
  ```ruby
13
- gem "administrate-field-ckeditor", "~> 0.0.2"
13
+ gem "administrate-field-ckeditor", "~> 0.0.3"
14
14
  ```
15
15
 
16
16
  Run:
@@ -29,7 +29,7 @@ ATTRIBUTE_TYPES = [
29
29
  Or with ckeditor options:
30
30
  ```ruby
31
31
  ATTRIBUTE_TYPES = [
32
- quxes: Field::Ckeditor.with_options({ckeditor: {uiColor: '#800000'}}),
32
+ bars: Field::Ckeditor.with_options({ ckeditor: { uiColor: '#800000' }}),
33
33
  ]
34
34
  ```
35
35
 
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "administrate-field-ckeditor"
5
- gem.version = "0.0.3"
5
+ gem.version = "0.0.4"
6
6
  gem.authors = ["Rikki Pitt"]
7
7
  gem.email = ["rikkipitt@gmail.com"]
8
8
  gem.homepage = "https://github.com/jemcode/administrate-field-ckeditor"
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
  gem.files = `git ls-files`.split("\n")
15
15
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
16
 
17
- gem.add_dependency "administrate", "~> 0.2.1"
18
- gem.add_dependency "rails", ">= 4.2"
17
+ gem.add_dependency "administrate", "~> 0.3.0"
18
+ gem.add_dependency "rails", ">= 4.2", "< 5.1"
19
19
  gem.add_dependency "ckeditor", "~> 4.1"
20
20
  end
@@ -27,3 +27,17 @@ module Administrate
27
27
  end
28
28
  end
29
29
  end
30
+
31
+ module Ckeditor
32
+ module Utils
33
+ class << self
34
+ alias_method :old_js_init_ckeditor, :js_init_ckeditor
35
+
36
+ def js_init_ckeditor(dom_id, replace)
37
+ %(document.addEventListener("DOMContentLoaded", function(event) {
38
+ #{old_js_init_ckeditor(dom_id, replace)}
39
+ });)
40
+ end
41
+ end
42
+ end
43
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-field-ckeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rikki Pitt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-14 00:00:00.000000000 Z
11
+ date: 2017-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.1
19
+ version: 0.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.1
26
+ version: 0.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -31,6 +31,9 @@ dependencies:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.2'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '5.1'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -38,6 +41,9 @@ dependencies:
38
41
  - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: '4.2'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '5.1'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: ckeditor
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -88,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
94
  version: '0'
89
95
  requirements: []
90
96
  rubyforge_project:
91
- rubygems_version: 2.6.8
97
+ rubygems_version: 2.6.9
92
98
  signing_key:
93
99
  specification_version: 4
94
100
  summary: Plugin for adding ckeditor support in Administrate