ckeditor 3.5.4 → 3.6.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. data/Gemfile +23 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +96 -97
  4. data/Rakefile +16 -33
  5. data/app/controllers/ckeditor/attachment_files_controller.rb +4 -4
  6. data/app/controllers/ckeditor/base_controller.rb +15 -42
  7. data/app/controllers/ckeditor/pictures_controller.rb +3 -3
  8. data/app/views/ckeditor/attachment_files/index.html.erb +13 -51
  9. data/app/views/ckeditor/pictures/index.html.erb +14 -52
  10. data/app/views/ckeditor/shared/_asset.html.erb +19 -0
  11. data/app/views/ckeditor/shared/_asset_tmpl.html.erb +21 -0
  12. data/app/views/layouts/ckeditor.html.erb +16 -23
  13. data/config/locales/en.ckeditor.yml +3 -7
  14. data/config/locales/ru.ckeditor.yml +4 -8
  15. data/config/locales/uk.ckeditor.yml +4 -8
  16. data/config/routes.rb +3 -3
  17. data/lib/ckeditor.rb +30 -79
  18. data/lib/ckeditor/engine.rb +14 -13
  19. data/lib/ckeditor/helpers/controllers.rb +30 -0
  20. data/lib/ckeditor/helpers/form_builder.rb +11 -0
  21. data/lib/ckeditor/helpers/form_helper.rb +25 -0
  22. data/lib/ckeditor/helpers/view_helper.rb +19 -0
  23. data/lib/ckeditor/http.rb +81 -0
  24. data/lib/ckeditor/orm/active_record.rb +91 -0
  25. data/lib/ckeditor/utils.rb +51 -70
  26. data/lib/ckeditor/version.rb +2 -7
  27. data/lib/generators/ckeditor/install_generator.rb +62 -0
  28. data/lib/generators/ckeditor/models_generator.rb +51 -0
  29. data/lib/generators/ckeditor/templates/ckeditor.rb +18 -0
  30. data/lib/generators/ckeditor/templates/ckeditor/config.js +52 -0
  31. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_add.jpg +0 -0
  32. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_add.png +0 -0
  33. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_del.png +0 -0
  34. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_more.gif +0 -0
  35. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/preloader.gif +0 -0
  36. data/lib/generators/ckeditor/{base/templates/ckeditor/images → templates/ckeditor/filebrowser/images/thumbs}/ckfnothumb.gif +0 -0
  37. data/lib/generators/ckeditor/{base/templates/ckeditor/images → templates/ckeditor/filebrowser/images/thumbs}/mp3.gif +0 -0
  38. data/lib/generators/ckeditor/{base/templates/ckeditor/images → templates/ckeditor/filebrowser/images/thumbs}/pdf.gif +0 -0
  39. data/lib/generators/ckeditor/{base/templates/ckeditor/images → templates/ckeditor/filebrowser/images/thumbs}/rar.gif +0 -0
  40. data/lib/generators/ckeditor/{base/templates/ckeditor/images → templates/ckeditor/filebrowser/images/thumbs}/swf.gif +0 -0
  41. data/lib/generators/ckeditor/{base/templates/ckeditor/images → templates/ckeditor/filebrowser/images/thumbs}/xls.gif +0 -0
  42. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/javascripts/application.js +222 -0
  43. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/stylesheets/uploader.css +112 -0
  44. data/lib/generators/ckeditor/{base/templates → templates}/ckeditor/plugins/attachment/dialogs/attachment.js +0 -0
  45. data/lib/generators/ckeditor/{base/templates/ckeditor/_source → templates/ckeditor}/plugins/attachment/images/attachment.png +0 -0
  46. data/lib/generators/ckeditor/{base/templates/ckeditor/_source → templates/ckeditor}/plugins/attachment/lang/en.js +0 -0
  47. data/lib/generators/ckeditor/{base/templates/ckeditor/_source → templates/ckeditor}/plugins/attachment/lang/ru.js +0 -0
  48. data/lib/generators/ckeditor/{base/templates/ckeditor/_source → templates/ckeditor}/plugins/attachment/lang/uk.js +0 -0
  49. data/lib/generators/ckeditor/{base/templates → templates}/ckeditor/plugins/attachment/plugin.js +0 -0
  50. data/lib/generators/ckeditor/{base/templates → templates}/ckeditor/plugins/embed/dialogs/embed.js +0 -0
  51. data/lib/generators/ckeditor/{base/templates/ckeditor/_source → templates/ckeditor}/plugins/embed/images/embed.png +0 -0
  52. data/lib/generators/ckeditor/{base/templates/ckeditor/_source → templates/ckeditor}/plugins/embed/lang/en.js +0 -0
  53. data/lib/generators/ckeditor/{base/templates/ckeditor/_source → templates/ckeditor}/plugins/embed/lang/ru.js +0 -0
  54. data/lib/generators/ckeditor/{base/templates/ckeditor/_source → templates/ckeditor}/plugins/embed/lang/uk.js +0 -0
  55. data/lib/generators/ckeditor/{base/templates → templates}/ckeditor/plugins/embed/plugin.js +0 -0
  56. data/lib/generators/ckeditor/templates/models/active_record/asset.rb +7 -0
  57. data/lib/generators/ckeditor/templates/models/active_record/attachment_file.rb +15 -0
  58. data/lib/generators/ckeditor/{migration/templates/models/paperclip → templates/models/active_record}/migration.rb +3 -8
  59. data/lib/generators/ckeditor/templates/models/active_record/picture.rb +13 -0
  60. data/test/ckeditor_test.rb +13 -0
  61. data/test/controllers/attachment_files_controller_test.rb +52 -0
  62. data/test/controllers/pictures_controller_test.rb +52 -0
  63. data/test/dummy/Rakefile +7 -0
  64. data/test/dummy/app/controllers/application_controller.rb +4 -0
  65. data/test/dummy/app/controllers/posts_controller.rb +83 -0
  66. data/test/dummy/app/helpers/application_helper.rb +2 -0
  67. data/test/dummy/app/helpers/posts_helper.rb +2 -0
  68. data/test/dummy/app/models/ckeditor/asset.rb +7 -0
  69. data/test/dummy/app/models/ckeditor/attachment_file.rb +15 -0
  70. data/test/dummy/app/models/ckeditor/picture.rb +13 -0
  71. data/test/dummy/app/models/post.rb +3 -0
  72. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  73. data/test/dummy/app/views/posts/_form.html.erb +30 -0
  74. data/test/dummy/app/views/posts/edit.html.erb +6 -0
  75. data/test/dummy/app/views/posts/index.html.erb +27 -0
  76. data/test/dummy/app/views/posts/new.html.erb +5 -0
  77. data/test/dummy/app/views/posts/show.html.erb +5 -0
  78. data/test/dummy/config.ru +4 -0
  79. data/test/dummy/config/application.rb +46 -0
  80. data/test/dummy/config/boot.rb +10 -0
  81. data/test/dummy/config/database.yml +34 -0
  82. data/test/dummy/config/environment.rb +5 -0
  83. data/test/dummy/config/environments/development.rb +26 -0
  84. data/test/dummy/config/environments/production.rb +49 -0
  85. data/test/dummy/config/environments/test.rb +35 -0
  86. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  87. data/test/dummy/config/initializers/ckeditor.rb +18 -0
  88. data/test/dummy/config/initializers/inflections.rb +10 -0
  89. data/test/dummy/config/initializers/mime_types.rb +5 -0
  90. data/test/dummy/config/initializers/secret_token.rb +7 -0
  91. data/test/dummy/config/initializers/session_store.rb +8 -0
  92. data/test/dummy/config/locales/en.yml +5 -0
  93. data/test/dummy/config/routes.rb +4 -0
  94. data/test/dummy/db/migrate/20110623120047_create_posts.rb +14 -0
  95. data/test/dummy/db/migrate/20110705195648_create_ckeditor_assets.rb +26 -0
  96. data/test/dummy/db/schema.rb +36 -0
  97. data/test/dummy/log/development.log +818 -0
  98. data/test/dummy/log/production.log +0 -0
  99. data/test/dummy/log/server.log +0 -0
  100. data/test/dummy/log/test.log +5398 -0
  101. data/test/dummy/public/404.html +26 -0
  102. data/test/dummy/public/422.html +26 -0
  103. data/test/dummy/public/500.html +26 -0
  104. data/test/dummy/public/favicon.ico +0 -0
  105. data/test/dummy/public/javascripts/application.js +2 -0
  106. data/test/dummy/public/javascripts/controls.js +965 -0
  107. data/test/dummy/public/javascripts/dragdrop.js +974 -0
  108. data/test/dummy/public/javascripts/effects.js +1123 -0
  109. data/test/dummy/public/javascripts/prototype.js +6001 -0
  110. data/test/dummy/public/javascripts/rails.js +191 -0
  111. data/test/dummy/public/stylesheets/scaffold.css +56 -0
  112. data/test/dummy/script/rails +6 -0
  113. data/test/dummy/test/fixtures/files/rails.png +0 -0
  114. data/test/dummy/test/fixtures/files/rails.tar.gz +0 -0
  115. data/test/generators/install_generator_test.rb +18 -0
  116. data/test/generators/models_generator_test.rb +21 -0
  117. data/test/integration/navigation_test.rb +7 -0
  118. data/test/integration/posts_test.rb +41 -0
  119. data/test/routes_test.rb +47 -0
  120. data/test/support/integration_case.rb +5 -0
  121. data/test/test_helper.rb +28 -0
  122. data/test/tmp/app/models/ckeditor/asset.rb +7 -0
  123. data/test/tmp/app/models/ckeditor/attachment_file.rb +15 -0
  124. data/test/tmp/app/models/ckeditor/picture.rb +13 -0
  125. data/test/tmp/db/migrate/20110711170413_create_ckeditor_assets.rb +26 -0
  126. metadata +220 -99
  127. data/CHANGELOG +0 -15
  128. data/app/helpers/ckeditor/base_helper.rb +0 -21
  129. data/app/views/ckeditor/_asset.html.erb +0 -20
  130. data/app/views/ckeditor/_swfupload.html.erb +0 -73
  131. data/lib/ckeditor/form_builder.rb +0 -22
  132. data/lib/ckeditor/middleware.rb +0 -18
  133. data/lib/ckeditor/view_helper.rb +0 -92
  134. data/lib/generators/ckeditor/base/USAGE +0 -9
  135. data/lib/generators/ckeditor/base/base_generator.rb +0 -41
  136. data/lib/generators/ckeditor/base/templates/ckeditor.rb +0 -54
  137. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/dialogs/attachment.js +0 -384
  138. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/plugin.js +0 -44
  139. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/dialogs/embed.js +0 -65
  140. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/plugin.js +0 -43
  141. data/lib/generators/ckeditor/base/templates/ckeditor/config.js +0 -43
  142. data/lib/generators/ckeditor/base/templates/ckeditor/css/ckfinder.css +0 -316
  143. data/lib/generators/ckeditor/base/templates/ckeditor/css/fck_dialog.css +0 -119
  144. data/lib/generators/ckeditor/base/templates/ckeditor/css/fck_editor.css +0 -448
  145. data/lib/generators/ckeditor/base/templates/ckeditor/css/swfupload.css +0 -94
  146. data/lib/generators/ckeditor/base/templates/ckeditor/images/add.gif +0 -0
  147. data/lib/generators/ckeditor/base/templates/ckeditor/images/cancelbutton.gif +0 -0
  148. data/lib/generators/ckeditor/base/templates/ckeditor/images/doc.gif +0 -0
  149. data/lib/generators/ckeditor/base/templates/ckeditor/images/refresh.gif +0 -0
  150. data/lib/generators/ckeditor/base/templates/ckeditor/images/select_files.png +0 -0
  151. data/lib/generators/ckeditor/base/templates/ckeditor/images/spacer.gif +0 -0
  152. data/lib/generators/ckeditor/base/templates/ckeditor/images/toolbar.start.gif +0 -0
  153. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/images/attachment.png +0 -0
  154. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/en.js +0 -10
  155. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/ru.js +0 -10
  156. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/uk.js +0 -10
  157. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/images/embed.png +0 -0
  158. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/en.js +0 -9
  159. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/ru.js +0 -9
  160. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/uk.js +0 -9
  161. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/fileprogress.js +0 -266
  162. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/handlers.js +0 -181
  163. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/jquery-1.5.1.min.js +0 -16
  164. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/querystring.js +0 -40
  165. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/rails.js +0 -158
  166. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/swfupload.js +0 -1
  167. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/swfupload.queue.js +0 -1
  168. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/swfupload.swf +0 -0
  169. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/swfupload.swfobject.js +0 -111
  170. data/lib/generators/ckeditor/migration/USAGE +0 -12
  171. data/lib/generators/ckeditor/migration/migration_generator.rb +0 -46
  172. data/lib/generators/ckeditor/migration/templates/models/attachment_fu/asset.rb +0 -32
  173. data/lib/generators/ckeditor/migration/templates/models/attachment_fu/attachment_file.rb +0 -24
  174. data/lib/generators/ckeditor/migration/templates/models/attachment_fu/migration.rb +0 -30
  175. data/lib/generators/ckeditor/migration/templates/models/attachment_fu/picture.rb +0 -25
  176. data/lib/generators/ckeditor/migration/templates/models/paperclip/asset.rb +0 -97
  177. data/lib/generators/ckeditor/migration/templates/models/paperclip/attachment_file.rb +0 -40
  178. data/lib/generators/ckeditor/migration/templates/models/paperclip/picture.rb +0 -23
  179. data/lib/tasks/ckeditor_tasks.rake +0 -3
@@ -0,0 +1,13 @@
1
+ class Ckeditor::Picture < Ckeditor::Asset
2
+ has_attached_file :data,
3
+ :url => "/ckeditor_assets/pictures/:id/:style_:basename.:extension",
4
+ :path => ":rails_root/public/ckeditor_assets/pictures/:id/:style_:basename.:extension",
5
+ :styles => { :content => '800>', :thumb => '118x100#' }
6
+
7
+ validates_attachment_size :data, :less_than => 2.megabytes
8
+ validates_attachment_presence :data
9
+
10
+ def url_content
11
+ url(:content)
12
+ end
13
+ end
@@ -0,0 +1,26 @@
1
+ class CreateCkeditorAssets < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :ckeditor_assets do |t|
4
+ t.string :data_file_name, :null => false
5
+ t.string :data_content_type
6
+ t.integer :data_file_size
7
+
8
+ t.integer :assetable_id
9
+ t.string :assetable_type, :limit => 30
10
+ t.string :type, :limit => 30
11
+
12
+ # Uncomment it to save images dimensions, if your need it
13
+ # t.integer :width
14
+ # t.integer :height
15
+
16
+ t.timestamps
17
+ end
18
+
19
+ add_index "ckeditor_assets", ["assetable_type", "type", "assetable_id"], :name => "idx_ckeditor_assetable_type"
20
+ add_index "ckeditor_assets", ["assetable_type", "assetable_id"], :name => "idx_ckeditor_assetable"
21
+ end
22
+
23
+ def self.down
24
+ drop_table :ckeditor_assets
25
+ end
26
+ end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ckeditor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease:
4
+ hash: 961915972
5
+ prerelease: 6
6
6
  segments:
7
7
  - 3
8
- - 5
9
- - 4
10
- version: 3.5.4
8
+ - 6
9
+ - 0
10
+ - pre
11
+ version: 3.6.0.pre
11
12
  platform: ruby
12
13
  authors:
13
14
  - Igor Galeta
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-05-25 00:00:00 +03:00
19
+ date: 2011-07-12 00:00:00 +03:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
@@ -24,7 +25,7 @@ dependencies:
24
25
  requirement: &id001 !ruby/object:Gem::Requirement
25
26
  none: false
26
27
  requirements:
27
- - - ">="
28
+ - - ~>
28
29
  - !ruby/object:Gem::Version
29
30
  hash: 47
30
31
  segments:
@@ -33,6 +34,22 @@ dependencies:
33
34
  version: "1.16"
34
35
  type: :runtime
35
36
  version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: orm_adapter
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ hash: 21
46
+ segments:
47
+ - 0
48
+ - 0
49
+ - 5
50
+ version: 0.0.5
51
+ type: :runtime
52
+ version_requirements: *id002
36
53
  description: CKEditor is a WYSIWYG editor to be used inside web pages
37
54
  email: galeta.igor@gmail.com
38
55
  executables: []
@@ -42,98 +59,135 @@ extensions: []
42
59
  extra_rdoc_files:
43
60
  - README.rdoc
44
61
  files:
45
- - CHANGELOG
46
- - README.rdoc
47
- - Rakefile
62
+ - app/views/ckeditor/pictures/index.html.erb
63
+ - app/views/ckeditor/shared/_asset_tmpl.html.erb
64
+ - app/views/ckeditor/shared/_asset.html.erb
65
+ - app/views/ckeditor/attachment_files/index.html.erb
66
+ - app/views/layouts/ckeditor.html.erb
48
67
  - app/controllers/ckeditor/attachment_files_controller.rb
49
68
  - app/controllers/ckeditor/base_controller.rb
50
69
  - app/controllers/ckeditor/pictures_controller.rb
51
- - app/helpers/ckeditor/base_helper.rb
52
- - app/views/ckeditor/_asset.html.erb
53
- - app/views/ckeditor/_swfupload.html.erb
54
- - app/views/ckeditor/attachment_files/index.html.erb
55
- - app/views/ckeditor/pictures/index.html.erb
56
- - app/views/layouts/ckeditor.html.erb
57
- - config/locales/en.ckeditor.yml
58
- - config/locales/ru.ckeditor.yml
59
- - config/locales/uk.ckeditor.yml
60
- - config/routes.rb
61
- - lib/ckeditor.rb
62
70
  - lib/ckeditor/engine.rb
63
- - lib/ckeditor/form_builder.rb
64
- - lib/ckeditor/hooks/formtastic.rb
65
- - lib/ckeditor/hooks/simple_form.rb
66
- - lib/ckeditor/middleware.rb
67
71
  - lib/ckeditor/utils.rb
72
+ - lib/ckeditor/helpers/view_helper.rb
73
+ - lib/ckeditor/helpers/form_builder.rb
74
+ - lib/ckeditor/helpers/controllers.rb
75
+ - lib/ckeditor/helpers/form_helper.rb
76
+ - lib/ckeditor/hooks/simple_form.rb
77
+ - lib/ckeditor/hooks/formtastic.rb
78
+ - lib/ckeditor/http.rb
79
+ - lib/ckeditor/orm/active_record.rb
68
80
  - lib/ckeditor/version.rb
69
- - lib/ckeditor/view_helper.rb
70
- - lib/generators/ckeditor/base/USAGE
71
- - lib/generators/ckeditor/base/base_generator.rb
72
- - lib/generators/ckeditor/base/templates/ckeditor.rb
73
- - lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/dialogs/attachment.js
74
- - lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/images/attachment.png
75
- - lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/lang/en.js
76
- - lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/lang/ru.js
77
- - lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/lang/uk.js
78
- - lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/plugin.js
79
- - lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/dialogs/embed.js
80
- - lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/images/embed.png
81
- - lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/lang/en.js
82
- - lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/lang/ru.js
83
- - lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/lang/uk.js
84
- - lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/plugin.js
85
- - lib/generators/ckeditor/base/templates/ckeditor/config.js
86
- - lib/generators/ckeditor/base/templates/ckeditor/css/ckfinder.css
87
- - lib/generators/ckeditor/base/templates/ckeditor/css/fck_dialog.css
88
- - lib/generators/ckeditor/base/templates/ckeditor/css/fck_editor.css
89
- - lib/generators/ckeditor/base/templates/ckeditor/css/swfupload.css
90
- - lib/generators/ckeditor/base/templates/ckeditor/images/add.gif
91
- - lib/generators/ckeditor/base/templates/ckeditor/images/cancelbutton.gif
92
- - lib/generators/ckeditor/base/templates/ckeditor/images/ckfnothumb.gif
93
- - lib/generators/ckeditor/base/templates/ckeditor/images/doc.gif
94
- - lib/generators/ckeditor/base/templates/ckeditor/images/mp3.gif
95
- - lib/generators/ckeditor/base/templates/ckeditor/images/pdf.gif
96
- - lib/generators/ckeditor/base/templates/ckeditor/images/rar.gif
97
- - lib/generators/ckeditor/base/templates/ckeditor/images/refresh.gif
98
- - lib/generators/ckeditor/base/templates/ckeditor/images/select_files.png
99
- - lib/generators/ckeditor/base/templates/ckeditor/images/spacer.gif
100
- - lib/generators/ckeditor/base/templates/ckeditor/images/swf.gif
101
- - lib/generators/ckeditor/base/templates/ckeditor/images/toolbar.start.gif
102
- - lib/generators/ckeditor/base/templates/ckeditor/images/xls.gif
103
- - lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/dialogs/attachment.js
104
- - lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/images/attachment.png
105
- - lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/en.js
106
- - lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/ru.js
107
- - lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/uk.js
108
- - lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/plugin.js
109
- - lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/dialogs/embed.js
110
- - lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/images/embed.png
111
- - lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/en.js
112
- - lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/ru.js
113
- - lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/uk.js
114
- - lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/plugin.js
115
- - lib/generators/ckeditor/base/templates/ckeditor/swfupload/fileprogress.js
116
- - lib/generators/ckeditor/base/templates/ckeditor/swfupload/handlers.js
117
- - lib/generators/ckeditor/base/templates/ckeditor/swfupload/jquery-1.5.1.min.js
118
- - lib/generators/ckeditor/base/templates/ckeditor/swfupload/querystring.js
119
- - lib/generators/ckeditor/base/templates/ckeditor/swfupload/rails.js
120
- - lib/generators/ckeditor/base/templates/ckeditor/swfupload/swfupload.js
121
- - lib/generators/ckeditor/base/templates/ckeditor/swfupload/swfupload.queue.js
122
- - lib/generators/ckeditor/base/templates/ckeditor/swfupload/swfupload.swf
123
- - lib/generators/ckeditor/base/templates/ckeditor/swfupload/swfupload.swfobject.js
124
- - lib/generators/ckeditor/migration/USAGE
125
- - lib/generators/ckeditor/migration/migration_generator.rb
126
- - lib/generators/ckeditor/migration/templates/models/attachment_fu/asset.rb
127
- - lib/generators/ckeditor/migration/templates/models/attachment_fu/attachment_file.rb
128
- - lib/generators/ckeditor/migration/templates/models/attachment_fu/migration.rb
129
- - lib/generators/ckeditor/migration/templates/models/attachment_fu/picture.rb
130
- - lib/generators/ckeditor/migration/templates/models/paperclip/asset.rb
131
- - lib/generators/ckeditor/migration/templates/models/paperclip/attachment_file.rb
132
- - lib/generators/ckeditor/migration/templates/models/paperclip/migration.rb
133
- - lib/generators/ckeditor/migration/templates/models/paperclip/picture.rb
134
- - lib/tasks/ckeditor_tasks.rake
81
+ - lib/generators/ckeditor/models_generator.rb
82
+ - lib/generators/ckeditor/install_generator.rb
83
+ - lib/generators/ckeditor/templates/ckeditor/filebrowser/stylesheets/uploader.css
84
+ - lib/generators/ckeditor/templates/ckeditor/filebrowser/javascripts/application.js
85
+ - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_add.jpg
86
+ - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/preloader.gif
87
+ - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/ckfnothumb.gif
88
+ - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/swf.gif
89
+ - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/mp3.gif
90
+ - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/rar.gif
91
+ - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/pdf.gif
92
+ - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/xls.gif
93
+ - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_more.gif
94
+ - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_del.png
95
+ - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_add.png
96
+ - lib/generators/ckeditor/templates/ckeditor/plugins/embed/plugin.js
97
+ - lib/generators/ckeditor/templates/ckeditor/plugins/embed/dialogs/embed.js
98
+ - lib/generators/ckeditor/templates/ckeditor/plugins/embed/images/embed.png
99
+ - lib/generators/ckeditor/templates/ckeditor/plugins/embed/lang/en.js
100
+ - lib/generators/ckeditor/templates/ckeditor/plugins/embed/lang/uk.js
101
+ - lib/generators/ckeditor/templates/ckeditor/plugins/embed/lang/ru.js
102
+ - lib/generators/ckeditor/templates/ckeditor/plugins/attachment/plugin.js
103
+ - lib/generators/ckeditor/templates/ckeditor/plugins/attachment/dialogs/attachment.js
104
+ - lib/generators/ckeditor/templates/ckeditor/plugins/attachment/images/attachment.png
105
+ - lib/generators/ckeditor/templates/ckeditor/plugins/attachment/lang/en.js
106
+ - lib/generators/ckeditor/templates/ckeditor/plugins/attachment/lang/uk.js
107
+ - lib/generators/ckeditor/templates/ckeditor/plugins/attachment/lang/ru.js
108
+ - lib/generators/ckeditor/templates/ckeditor/config.js
109
+ - lib/generators/ckeditor/templates/models/active_record/attachment_file.rb
110
+ - lib/generators/ckeditor/templates/models/active_record/asset.rb
111
+ - lib/generators/ckeditor/templates/models/active_record/migration.rb
112
+ - lib/generators/ckeditor/templates/models/active_record/picture.rb
113
+ - lib/generators/ckeditor/templates/ckeditor.rb
114
+ - lib/ckeditor.rb
115
+ - config/routes.rb
116
+ - config/locales/uk.ckeditor.yml
117
+ - config/locales/en.ckeditor.yml
118
+ - config/locales/ru.ckeditor.yml
119
+ - MIT-LICENSE
120
+ - Rakefile
121
+ - Gemfile
122
+ - README.rdoc
123
+ - test/integration/posts_test.rb
124
+ - test/integration/navigation_test.rb
125
+ - test/generators/models_generator_test.rb
126
+ - test/generators/install_generator_test.rb
127
+ - test/dummy/public/stylesheets/scaffold.css
128
+ - test/dummy/public/500.html
129
+ - test/dummy/public/404.html
130
+ - test/dummy/public/favicon.ico
131
+ - test/dummy/public/javascripts/application.js
132
+ - test/dummy/public/javascripts/dragdrop.js
133
+ - test/dummy/public/javascripts/effects.js
134
+ - test/dummy/public/javascripts/prototype.js
135
+ - test/dummy/public/javascripts/controls.js
136
+ - test/dummy/public/javascripts/rails.js
137
+ - test/dummy/public/422.html
138
+ - test/dummy/app/views/layouts/application.html.erb
139
+ - test/dummy/app/views/posts/new.html.erb
140
+ - test/dummy/app/views/posts/edit.html.erb
141
+ - test/dummy/app/views/posts/_form.html.erb
142
+ - test/dummy/app/views/posts/show.html.erb
143
+ - test/dummy/app/views/posts/index.html.erb
144
+ - test/dummy/app/helpers/posts_helper.rb
145
+ - test/dummy/app/helpers/application_helper.rb
146
+ - test/dummy/app/models/ckeditor/attachment_file.rb
147
+ - test/dummy/app/models/ckeditor/asset.rb
148
+ - test/dummy/app/models/ckeditor/picture.rb
149
+ - test/dummy/app/models/post.rb
150
+ - test/dummy/app/controllers/application_controller.rb
151
+ - test/dummy/app/controllers/posts_controller.rb
152
+ - test/dummy/log/production.log
153
+ - test/dummy/log/server.log
154
+ - test/dummy/log/test.log
155
+ - test/dummy/log/development.log
156
+ - test/dummy/Rakefile
157
+ - test/dummy/test/fixtures/files/rails.png
158
+ - test/dummy/test/fixtures/files/rails.tar.gz
159
+ - test/dummy/script/rails
160
+ - test/dummy/config/routes.rb
161
+ - test/dummy/config/environments/production.rb
162
+ - test/dummy/config/environments/test.rb
163
+ - test/dummy/config/environments/development.rb
164
+ - test/dummy/config/boot.rb
165
+ - test/dummy/config/application.rb
166
+ - test/dummy/config/database.yml
167
+ - test/dummy/config/initializers/session_store.rb
168
+ - test/dummy/config/initializers/inflections.rb
169
+ - test/dummy/config/initializers/ckeditor.rb
170
+ - test/dummy/config/initializers/mime_types.rb
171
+ - test/dummy/config/initializers/backtrace_silencers.rb
172
+ - test/dummy/config/initializers/secret_token.rb
173
+ - test/dummy/config/environment.rb
174
+ - test/dummy/config/locales/en.yml
175
+ - test/dummy/db/migrate/20110623120047_create_posts.rb
176
+ - test/dummy/db/migrate/20110705195648_create_ckeditor_assets.rb
177
+ - test/dummy/db/schema.rb
178
+ - test/dummy/config.ru
179
+ - test/tmp/app/models/ckeditor/attachment_file.rb
180
+ - test/tmp/app/models/ckeditor/asset.rb
181
+ - test/tmp/app/models/ckeditor/picture.rb
182
+ - test/tmp/db/migrate/20110711170413_create_ckeditor_assets.rb
183
+ - test/support/integration_case.rb
184
+ - test/test_helper.rb
185
+ - test/controllers/pictures_controller_test.rb
186
+ - test/controllers/attachment_files_controller_test.rb
187
+ - test/ckeditor_test.rb
188
+ - test/routes_test.rb
135
189
  has_rdoc: true
136
- homepage: http://github.com/galetahub/rails-ckeditor
190
+ homepage: https://github.com/galetahub/ckeditor
137
191
  licenses: []
138
192
 
139
193
  post_install_message:
@@ -153,18 +207,85 @@ required_ruby_version: !ruby/object:Gem::Requirement
153
207
  required_rubygems_version: !ruby/object:Gem::Requirement
154
208
  none: false
155
209
  requirements:
156
- - - ">="
210
+ - - ">"
157
211
  - !ruby/object:Gem::Version
158
- hash: 3
212
+ hash: 25
159
213
  segments:
160
- - 0
161
- version: "0"
214
+ - 1
215
+ - 3
216
+ - 1
217
+ version: 1.3.1
162
218
  requirements: []
163
219
 
164
220
  rubyforge_project: ckeditor
165
221
  rubygems_version: 1.6.2
166
222
  signing_key:
167
223
  specification_version: 3
168
- summary: Rails plugin for integration ckeditor 3.x
169
- test_files: []
170
-
224
+ summary: Rails gem for easy integration ckeditor in your application
225
+ test_files:
226
+ - test/integration/posts_test.rb
227
+ - test/integration/navigation_test.rb
228
+ - test/generators/models_generator_test.rb
229
+ - test/generators/install_generator_test.rb
230
+ - test/dummy/public/stylesheets/scaffold.css
231
+ - test/dummy/public/500.html
232
+ - test/dummy/public/404.html
233
+ - test/dummy/public/favicon.ico
234
+ - test/dummy/public/javascripts/application.js
235
+ - test/dummy/public/javascripts/dragdrop.js
236
+ - test/dummy/public/javascripts/effects.js
237
+ - test/dummy/public/javascripts/prototype.js
238
+ - test/dummy/public/javascripts/controls.js
239
+ - test/dummy/public/javascripts/rails.js
240
+ - test/dummy/public/422.html
241
+ - test/dummy/app/views/layouts/application.html.erb
242
+ - test/dummy/app/views/posts/new.html.erb
243
+ - test/dummy/app/views/posts/edit.html.erb
244
+ - test/dummy/app/views/posts/_form.html.erb
245
+ - test/dummy/app/views/posts/show.html.erb
246
+ - test/dummy/app/views/posts/index.html.erb
247
+ - test/dummy/app/helpers/posts_helper.rb
248
+ - test/dummy/app/helpers/application_helper.rb
249
+ - test/dummy/app/models/ckeditor/attachment_file.rb
250
+ - test/dummy/app/models/ckeditor/asset.rb
251
+ - test/dummy/app/models/ckeditor/picture.rb
252
+ - test/dummy/app/models/post.rb
253
+ - test/dummy/app/controllers/application_controller.rb
254
+ - test/dummy/app/controllers/posts_controller.rb
255
+ - test/dummy/log/production.log
256
+ - test/dummy/log/server.log
257
+ - test/dummy/log/test.log
258
+ - test/dummy/log/development.log
259
+ - test/dummy/Rakefile
260
+ - test/dummy/test/fixtures/files/rails.png
261
+ - test/dummy/test/fixtures/files/rails.tar.gz
262
+ - test/dummy/script/rails
263
+ - test/dummy/config/routes.rb
264
+ - test/dummy/config/environments/production.rb
265
+ - test/dummy/config/environments/test.rb
266
+ - test/dummy/config/environments/development.rb
267
+ - test/dummy/config/boot.rb
268
+ - test/dummy/config/application.rb
269
+ - test/dummy/config/database.yml
270
+ - test/dummy/config/initializers/session_store.rb
271
+ - test/dummy/config/initializers/inflections.rb
272
+ - test/dummy/config/initializers/ckeditor.rb
273
+ - test/dummy/config/initializers/mime_types.rb
274
+ - test/dummy/config/initializers/backtrace_silencers.rb
275
+ - test/dummy/config/initializers/secret_token.rb
276
+ - test/dummy/config/environment.rb
277
+ - test/dummy/config/locales/en.yml
278
+ - test/dummy/db/migrate/20110623120047_create_posts.rb
279
+ - test/dummy/db/migrate/20110705195648_create_ckeditor_assets.rb
280
+ - test/dummy/db/schema.rb
281
+ - test/dummy/config.ru
282
+ - test/tmp/app/models/ckeditor/attachment_file.rb
283
+ - test/tmp/app/models/ckeditor/asset.rb
284
+ - test/tmp/app/models/ckeditor/picture.rb
285
+ - test/tmp/db/migrate/20110711170413_create_ckeditor_assets.rb
286
+ - test/support/integration_case.rb
287
+ - test/test_helper.rb
288
+ - test/controllers/pictures_controller_test.rb
289
+ - test/controllers/attachment_files_controller_test.rb
290
+ - test/ckeditor_test.rb
291
+ - test/routes_test.rb
data/CHANGELOG DELETED
@@ -1,15 +0,0 @@
1
- 0.9.0 - Replaced FCKeditor with CKEditor
2
-
3
- 0.8.1 - Remove plugin files on uninstall
4
-
5
- 0.8.0 - Added uninstall rake task
6
-
7
- 0.8.0 - Refactoring for fckeditor controller
8
-
9
- 0.8.0 - Added Easy upload plugin http://martinezdelizarrondo.com/easyupload/
10
-
11
- 0.8.0 - Change for works with FCKeditor 2.6.3
12
-
13
- 0.2.2 - Added fckeditor_form_remote_tag helper to allow multiple editors in a single form
14
-
15
- 0.2.1 - Added spell check from Ken Pratt
@@ -1,21 +0,0 @@
1
- module Ckeditor::BaseHelper
2
- def ckeditor_asset_path(kind)
3
- path = case kind
4
- when :image then Ckeditor.file_manager_image_upload_uri
5
- when :file then Ckeditor.file_manager_upload_uri
6
- else '/ckeditor/attachment_files'
7
- end
8
-
9
- session_key = Rails.application.config.send(:session_options)[:key]
10
-
11
- options = Rails.application.routes.recognize_path(path, :method => :post)
12
- options[:protocol] = "http://"
13
- options[session_key] = Rack::Utils.escape(cookies[session_key])
14
-
15
- if protect_against_forgery?
16
- options[request_forgery_protection_token] = Rack::Utils.escape(form_authenticity_token)
17
- end
18
-
19
- url_for(options)
20
- end
21
- end