ckeditor 3.5.2 → 3.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -161,5 +161,4 @@ support swf upload with AuthenticityToken.
161
161
 
162
162
  == TODOs
163
163
 
164
- 1. Add support for choose filemanager storage
165
- 2. More integration upload system
164
+ 1. HTML5 File uploads
@@ -1,4 +1,4 @@
1
- class Ckeditor::AttachmentsController < Ckeditor::BaseController
1
+ class Ckeditor::AttachmentFilesController < Ckeditor::BaseController
2
2
 
3
3
  def index
4
4
  @attachments = Ckeditor.file_model.order("id DESC")
@@ -1,9 +1,9 @@
1
1
  module Ckeditor::BaseHelper
2
- def ckeditor_attachment_path(kind)
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/attachments'
6
+ else '/ckeditor/attachment_files'
7
7
  end
8
8
 
9
9
  session_key = Rails.application.config.send(:session_options)[:key]
@@ -1,5 +1,5 @@
1
1
  <script type="text/javascript">
2
- var upload_path = "<%=raw ckeditor_attachment_path(:file) %>";
2
+ var upload_path = "<%=raw ckeditor_asset_path(:file) %>";
3
3
  </script>
4
4
 
5
5
  <table width="100%" cellspacing="0" cellpadding="0">
@@ -1,5 +1,5 @@
1
1
  <script type="text/javascript">
2
- var upload_path = "<%=raw ckeditor_attachment_path(:image) %>";
2
+ var upload_path = "<%=raw ckeditor_asset_path(:image) %>";
3
3
  </script>
4
4
 
5
5
  <table width="100%" cellspacing="0" cellpadding="0">
data/config/routes.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  Rails.application.routes.draw do
2
2
  namespace :ckeditor do
3
3
  resources :pictures, :only => [:index, :create, :destroy]
4
- resources :attachments, :only => [:index, :create, :destroy]
4
+ resources :attachment_files, :only => [:index, :create, :destroy]
5
5
  end
6
6
  end
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/attachments"
46
+ @@file_manager_uri = "/ckeditor/attachment_files"
47
47
 
48
48
  mattr_accessor :file_manager_upload_uri
49
- @@file_manager_upload_uri = "/ckeditor/attachments"
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.class_variables.include?('@@file_model_ref')
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"
@@ -2,7 +2,7 @@ module Ckeditor
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 5
5
- RELEASE = 2
5
+ RELEASE = 3
6
6
 
7
7
  def self.dup
8
8
  "#{MAJOR}.#{MINOR}.#{RELEASE}"
@@ -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.2',
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: 23
5
- prerelease: false
4
+ hash: 21
5
+ prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 5
9
- - 2
10
- version: 3.5.2
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-03-21 00:00:00 +02:00
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/attachments_controller.rb
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/attachments/index.html.erb
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.3.7
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