ckeditor 3.2.3 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -1
- data/app/helpers/ckeditor_helper.rb +2 -2
- data/lib/ckeditor/middleware.rb +1 -1
- data/lib/ckeditor/version.rb +1 -1
- metadata +19 -4
data/README.rdoc
CHANGED
@@ -61,7 +61,7 @@ FormBuilder helper for more usefully:
|
|
61
61
|
|
62
62
|
<%= form_for @page do |form| -%>
|
63
63
|
...
|
64
|
-
<%= form.cktext_area :notes, :toolbar=>'Full', :width=>'400px', :
|
64
|
+
<%= form.cktext_area :notes, :toolbar=>'Full', :width=>'400px', :height=>'200px' %>
|
65
65
|
...
|
66
66
|
<%= form.cktext_area :content, :swf_params=>{:assetable_type=>'User', :assetable_id=>current_user.id} %>
|
67
67
|
...
|
@@ -10,10 +10,10 @@ module CkeditorHelper
|
|
10
10
|
|
11
11
|
options = Rails.application.routes.recognize_path(path, :method => :post)
|
12
12
|
options[:protocol] = "http://"
|
13
|
-
options[session_key] =
|
13
|
+
options[session_key] = Rack::Utils.escape(cookies[session_key])
|
14
14
|
|
15
15
|
if protect_against_forgery?
|
16
|
-
options[request_forgery_protection_token] = form_authenticity_token
|
16
|
+
options[request_forgery_protection_token] = Rack::Utils.escape(form_authenticity_token)
|
17
17
|
end
|
18
18
|
|
19
19
|
url_for(options)
|
data/lib/ckeditor/middleware.rb
CHANGED
@@ -10,7 +10,7 @@ module Ckeditor
|
|
10
10
|
def call(env)
|
11
11
|
if env['HTTP_USER_AGENT'] =~ /^(Adobe|Shockwave) Flash/
|
12
12
|
params = ::Rack::Utils.parse_query(env['QUERY_STRING'])
|
13
|
-
env['HTTP_COOKIE'] = [ @session_key, ::Rack::Utils.
|
13
|
+
env['HTTP_COOKIE'] = [ @session_key, ::Rack::Utils.unescape(params[@session_key]) ].join('=').freeze unless params[@session_key].nil?
|
14
14
|
end
|
15
15
|
@app.call(env)
|
16
16
|
end
|
data/lib/ckeditor/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ckeditor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 7
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 3
|
7
8
|
- 2
|
8
|
-
-
|
9
|
-
version: 3.2.
|
9
|
+
- 4
|
10
|
+
version: 3.2.4
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Igor Galeta
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-06-01 00:00:00 +03:00
|
18
19
|
default_executable:
|
19
20
|
dependencies: []
|
20
21
|
|
@@ -659,6 +660,16 @@ files:
|
|
659
660
|
- lib/generators/templates/models/paperclip/migration.rb
|
660
661
|
- lib/generators/templates/models/paperclip/picture.rb
|
661
662
|
- lib/tasks/ckeditor_tasks.rake
|
663
|
+
- examples/migrations/attachment_fu/create_assets.rb
|
664
|
+
- examples/migrations/paperclip/create_assets.rb
|
665
|
+
- examples/s3/attachment_file.rb
|
666
|
+
- examples/s3/picture.rb
|
667
|
+
- examples/models/attachment_fu/asset.rb
|
668
|
+
- examples/models/attachment_fu/attachment_file.rb
|
669
|
+
- examples/models/attachment_fu/picture.rb
|
670
|
+
- examples/models/paperclip/asset.rb
|
671
|
+
- examples/models/paperclip/attachment_file.rb
|
672
|
+
- examples/models/paperclip/picture.rb
|
662
673
|
has_rdoc: true
|
663
674
|
homepage: http://github.com/galetahub/rails-ckeditor
|
664
675
|
licenses: []
|
@@ -669,23 +680,27 @@ rdoc_options:
|
|
669
680
|
require_paths:
|
670
681
|
- lib
|
671
682
|
required_ruby_version: !ruby/object:Gem::Requirement
|
683
|
+
none: false
|
672
684
|
requirements:
|
673
685
|
- - ">="
|
674
686
|
- !ruby/object:Gem::Version
|
687
|
+
hash: 3
|
675
688
|
segments:
|
676
689
|
- 0
|
677
690
|
version: "0"
|
678
691
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
692
|
+
none: false
|
679
693
|
requirements:
|
680
694
|
- - ">="
|
681
695
|
- !ruby/object:Gem::Version
|
696
|
+
hash: 3
|
682
697
|
segments:
|
683
698
|
- 0
|
684
699
|
version: "0"
|
685
700
|
requirements: []
|
686
701
|
|
687
702
|
rubyforge_project: ckeditor
|
688
|
-
rubygems_version: 1.3.
|
703
|
+
rubygems_version: 1.3.7
|
689
704
|
signing_key:
|
690
705
|
specification_version: 3
|
691
706
|
summary: Rails plugin for integration ckeditor 3.x
|