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 +4 -4
- data/lib/ckeditor/helpers/form_helper.rb +9 -4
- data/lib/ckeditor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd8912204e05c66855c6bfee7b270c9072d683f2
|
4
|
+
data.tar.gz: 36234edd1311e65c3a719c7d6c580cc87a8a448f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
14
|
-
|
15
|
-
|
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
|
data/lib/ckeditor/version.rb
CHANGED
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-
|
11
|
+
date: 2013-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|