ckeditor 3.5.2 → 3.5.3
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 -2
- data/app/controllers/ckeditor/{attachments_controller.rb → attachment_files_controller.rb} +1 -1
- data/app/helpers/ckeditor/base_helper.rb +2 -2
- data/app/views/ckeditor/{attachments → attachment_files}/index.html.erb +1 -1
- data/app/views/ckeditor/pictures/index.html.erb +1 -1
- data/config/routes.rb +1 -1
- data/lib/ckeditor.rb +3 -3
- data/lib/ckeditor/version.rb +1 -1
- data/lib/ckeditor/view_helper.rb +3 -2
- data/lib/generators/ckeditor/base/base_generator.rb +1 -1
- metadata +8 -8
data/README.rdoc
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
module Ckeditor::BaseHelper
|
|
2
|
-
def
|
|
2
|
+
def ckeditor_asset_path(kind)
|
|
3
3
|
path = case kind
|
|
4
4
|
when :image then Ckeditor.file_manager_image_upload_uri
|
|
5
5
|
when :file then Ckeditor.file_manager_upload_uri
|
|
6
|
-
else '/ckeditor/
|
|
6
|
+
else '/ckeditor/attachment_files'
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
session_key = Rails.application.config.send(:session_options)[:key]
|
data/config/routes.rb
CHANGED
data/lib/ckeditor.rb
CHANGED
|
@@ -43,10 +43,10 @@ module Ckeditor
|
|
|
43
43
|
@@public_path = "public/uploads"
|
|
44
44
|
|
|
45
45
|
mattr_accessor :file_manager_uri
|
|
46
|
-
@@file_manager_uri = "/ckeditor/
|
|
46
|
+
@@file_manager_uri = "/ckeditor/attachment_files"
|
|
47
47
|
|
|
48
48
|
mattr_accessor :file_manager_upload_uri
|
|
49
|
-
@@file_manager_upload_uri = "/ckeditor/
|
|
49
|
+
@@file_manager_upload_uri = "/ckeditor/attachment_files"
|
|
50
50
|
|
|
51
51
|
mattr_accessor :file_manager_image_upload_uri
|
|
52
52
|
@@file_manager_image_upload_uri = "/ckeditor/pictures"
|
|
@@ -73,7 +73,7 @@ module Ckeditor
|
|
|
73
73
|
|
|
74
74
|
# Get the file class from the file reference object.
|
|
75
75
|
def self.file_model
|
|
76
|
-
if self.
|
|
76
|
+
if self.class_variable_defined?('@@file_model_ref')
|
|
77
77
|
@@file_model_ref.get
|
|
78
78
|
else
|
|
79
79
|
self.file_manager_file_model = "Ckeditor::AttachmentFile"
|
data/lib/ckeditor/version.rb
CHANGED
data/lib/ckeditor/view_helper.rb
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module Ckeditor
|
|
2
2
|
module ViewHelper
|
|
3
|
-
include ActionView::Helpers
|
|
4
|
-
|
|
3
|
+
include ActionView::Helpers::JavaScriptHelper
|
|
4
|
+
include ActionView::Helpers::TagHelper
|
|
5
|
+
|
|
5
6
|
# Ckeditor helper:
|
|
6
7
|
# <%= ckeditor_textarea("object", "field", :width => '100%', :height => '200px') %>
|
|
7
8
|
#
|
|
@@ -2,7 +2,7 @@ require 'rails/generators'
|
|
|
2
2
|
|
|
3
3
|
module Ckeditor
|
|
4
4
|
class BaseGenerator < Rails::Generators::Base
|
|
5
|
-
class_option :version, :type => :string, :default => '3.5.
|
|
5
|
+
class_option :version, :type => :string, :default => '3.5.3',
|
|
6
6
|
:desc => "Version of ckeditor which be install"
|
|
7
7
|
|
|
8
8
|
def self.source_root
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ckeditor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 21
|
|
5
|
+
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 3
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 3.5.
|
|
9
|
+
- 3
|
|
10
|
+
version: 3.5.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Igor Galeta
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-
|
|
18
|
+
date: 2011-05-01 00:00:00 +03:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -45,13 +45,13 @@ files:
|
|
|
45
45
|
- CHANGELOG
|
|
46
46
|
- README.rdoc
|
|
47
47
|
- Rakefile
|
|
48
|
-
- app/controllers/ckeditor/
|
|
48
|
+
- app/controllers/ckeditor/attachment_files_controller.rb
|
|
49
49
|
- app/controllers/ckeditor/base_controller.rb
|
|
50
50
|
- app/controllers/ckeditor/pictures_controller.rb
|
|
51
51
|
- app/helpers/ckeditor/base_helper.rb
|
|
52
52
|
- app/views/ckeditor/_asset.html.erb
|
|
53
53
|
- app/views/ckeditor/_swfupload.html.erb
|
|
54
|
-
- app/views/ckeditor/
|
|
54
|
+
- app/views/ckeditor/attachment_files/index.html.erb
|
|
55
55
|
- app/views/ckeditor/pictures/index.html.erb
|
|
56
56
|
- app/views/layouts/ckeditor.html.erb
|
|
57
57
|
- config/locales/en.ckeditor.yml
|
|
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
172
172
|
requirements: []
|
|
173
173
|
|
|
174
174
|
rubyforge_project: ckeditor
|
|
175
|
-
rubygems_version: 1.
|
|
175
|
+
rubygems_version: 1.6.2
|
|
176
176
|
signing_key:
|
|
177
177
|
specification_version: 3
|
|
178
178
|
summary: Rails plugin for integration ckeditor 3.x
|