glebtv-ckeditor 4.1.1 → 4.1.1.1

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: 46c9fa6e59a1c4f25db79e40fb0b18bbba1dc00a
4
- data.tar.gz: 79597772b3d00b51c41cf3b33bd83428885946cc
3
+ metadata.gz: bd8912204e05c66855c6bfee7b270c9072d683f2
4
+ data.tar.gz: 36234edd1311e65c3a719c7d6c580cc87a8a448f
5
5
  SHA512:
6
- metadata.gz: 0a5de871fa8b41b00a46d31ae3e2bbcbd944136bec18d6f476ce93a217615ce17a178b9be1596540828c10e083952b19f00967b45f671976c9db17f63ad4092c
7
- data.tar.gz: 8f8163c21c47c09b79ab9a02a73dde769442757962e055f75332aee52cfbd1f1b9719d1f0a56b4813170154c51efa414d22df0a3dad043c7289465b0e30c84db
6
+ metadata.gz: 1f65d87fd313032f21ad7145585bf81bf8775a257e59cc5fe1e50ef3746beb26249cf818afe800407a4f289505c6d6480e631d6383d8a69de7e1538ddb02d3ac
7
+ data.tar.gz: 2ef74928bb28764cc2638365c4faec8588a96b65203ea6f416e6fc6e14ec392a828368cef5a3602791adc69f4f083dc3743f6b1e75d0eaf737dd49069e941588
@@ -9,10 +9,15 @@ module Ckeditor
9
9
  def cktext_area(object_name, method, options = {})
10
10
  options = (options || {}).stringify_keys
11
11
  ck_options = (options.delete('ckeditor') || {}).stringify_keys
12
-
13
- instance_tag = ActionView::Helpers::Tags::TextArea.new(object_name, method, self, options)
14
- instance_tag.send(:add_default_name_and_id, options) if options['id'].blank?
15
- output = instance_tag.render
12
+ if ActionView::Helpers.const_defined?('Tags')
13
+ instance_tag = ActionView::Helpers::Tags::TextArea.new(object_name, method, self, options)
14
+ instance_tag.send(:add_default_name_and_id, options) if options['id'].blank?
15
+ output = instance_tag.render
16
+ else
17
+ instance_tag = ActionView::Base::InstanceTag.new(object_name, method, self, options.delete('object'))
18
+ instance_tag.send(:add_default_name_and_id, options) if options['id'].blank?
19
+ output = instance_tag.to_text_area_tag(options)
20
+ end
16
21
 
17
22
  output_buffer = ActiveSupport::SafeBuffer.new
18
23
  output_buffer << output
@@ -1,6 +1,6 @@
1
1
  module Ckeditor
2
2
  module Version
3
- GEM = "4.1.1".freeze
3
+ GEM = "4.1.1.1".freeze
4
4
  EDITOR = "4.1.1".freeze
5
5
  end
6
6
  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.1.1
4
+ version: 4.1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GlebTv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-03 00:00:00.000000000 Z
11
+ date: 2013-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types