glebtv-ckeditor 4.3.2.2 → 4.3.2.3

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: 690ca9f985dcda6c4dbcd3da555fe40f905597ad
4
- data.tar.gz: 23b110baf2207678008e1b74f2e509a70f96be35
3
+ metadata.gz: 9c69dafdb60332e2ed0423789676d8470039e81c
4
+ data.tar.gz: ff8c295c27ad323e33829fa4ae560bb44bcd71d8
5
5
  SHA512:
6
- metadata.gz: 349d2624c96936775bdb121934694242cb304b0bd29b3263e9f402da98f49235760739646dead9c58eb6dce26a1d2f2fbfef89533f909dc2eead96338a142945
7
- data.tar.gz: 0f89bb19b38772fd8aa72c1cab1dff321c225cc44d894d20e4b24bac62b083d217b9dd4918ea965310838676b6de1def77d680aea6fa907e46431a2fd2b55880
6
+ metadata.gz: 2fa7631da6a322209d48468462b70fa314346507da841e671932df8e47f2964ceff2da2483e84558cb465d41c0250fd39e34d8a9c493cf5d8951a2f0ea154e5f
7
+ data.tar.gz: 2bda391a56e95adff7db32258ebbf27219d60343e9063568398d0939e44793ca324554657edd4bd87d961188abd9fcd584e090f9c7692aeaf74648c3c2a0187e
@@ -1,29 +1,7 @@
1
- #require 'rails_admin/config/fields/base'
1
+ require 'rails_admin/config/fields/types/ck_editor'
2
+
2
3
  module RailsAdmin::Config::Fields::Types
3
- class Ckeditor < RailsAdmin::Config::Fields::Types::Text
4
+ class Ckeditor < RailsAdmin::Config::Fields::Types::CKEditor
4
5
  RailsAdmin::Config::Fields::Types::register(:ckeditor, self)
5
-
6
- register_instance_option(:config) do
7
- {}
8
- end
9
-
10
- register_instance_option(:partial) do
11
- :form_ckeditor
12
- end
13
-
14
- def scope_type
15
-
16
- # Use association name if existent
17
- if bindings[:form].object_name.scan(/.*\[(.*)_attributes\]/).nil?
18
- bindings[:form].object_name
19
- else
20
- bindings[:form].object_name.scan(/.*\[(.*)_attributes\]/).to_s
21
- end
22
- end
23
-
24
- def scope_id
25
- bindings[:object].id
26
- end
27
-
28
6
  end
29
- end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Ckeditor
2
- VERSION="4.3.2.2".freeze
2
+ VERSION="4.3.2.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glebtv-ckeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.2.2
4
+ version: 4.3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Galeta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-27 00:00:00.000000000 Z
11
+ date: 2014-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -111,7 +111,6 @@ files:
111
111
  - app/views/ckeditor/shared/_asset.html.erb
112
112
  - app/views/ckeditor/shared/_asset_tmpl.html.erb
113
113
  - app/views/layouts/ckeditor/application.html.erb
114
- - app/views/rails_admin/main/_form_ckeditor.html.haml
115
114
  - config/locales/cs.ckeditor.yml
116
115
  - config/locales/de.ckeditor.yml
117
116
  - config/locales/el-GR.cdkeditor.yml
@@ -1,7 +0,0 @@
1
- = javascript_include_tag "ckeditor/init"
2
-
3
- - if field.respond_to? :form_value
4
- = form.cktext_area field.method_name, field.html_attributes.reverse_merge(value: field.form_value )
5
- - else
6
- = form.cktext_area field.method_name, field.html_attributes.reverse_merge((hdv = field.html_default_value).nil? ? { :value => field.formatted_value } : { :value => hdv })
7
-