rails_kindeditor 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README.rdoc +34 -0
- data/Rakefile +2 -0
- data/app/controllers/kindeditor/assets_controller.rb +50 -0
- data/app/models/kindeditor/asset.rb +14 -0
- data/app/models/kindeditor/file.rb +4 -0
- data/app/models/kindeditor/image.rb +4 -0
- data/app/uploaders/kindeditor/file_uploader.rb +54 -0
- data/app/uploaders/kindeditor/image_uploader.rb +54 -0
- data/config/routes.rb +7 -0
- data/lib/generators/rails_kindeditor/install/USAGE +9 -0
- data/lib/generators/rails_kindeditor/install/install_generator.rb +11 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/kindeditor-init.js +7 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/kindeditor.js +4688 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/about.html +52 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/accessory.html +74 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/advtable/advtable.html +235 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/advtable/cell.html +201 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/0.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/1.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/10.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/100.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/101.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/102.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/103.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/104.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/105.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/106.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/107.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/108.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/109.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/11.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/110.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/111.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/112.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/113.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/114.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/115.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/116.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/117.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/118.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/119.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/12.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/120.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/121.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/122.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/123.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/124.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/125.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/126.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/127.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/128.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/129.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/13.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/130.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/131.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/132.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/133.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/134.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/14.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/15.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/16.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/17.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/18.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/19.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/2.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/20.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/21.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/22.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/23.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/24.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/25.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/26.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/27.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/28.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/29.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/3.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/30.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/31.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/32.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/33.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/34.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/35.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/36.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/37.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/38.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/39.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/4.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/40.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/41.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/42.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/43.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/44.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/45.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/46.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/47.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/48.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/49.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/5.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/50.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/51.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/52.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/53.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/54.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/55.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/56.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/57.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/58.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/59.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/6.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/60.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/61.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/62.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/63.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/64.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/65.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/66.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/67.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/68.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/69.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/7.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/70.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/71.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/72.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/73.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/74.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/75.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/76.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/77.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/78.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/79.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/8.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/80.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/81.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/82.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/83.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/84.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/85.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/86.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/87.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/88.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/89.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/9.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/90.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/91.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/92.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/93.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/94.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/95.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/96.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/97.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/98.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/99.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/qq.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.css +64 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.html +31 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.js +221 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/file-16.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/file-64.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/folder-16.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/folder-64.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/go-up.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/flash.html +69 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/image.html +305 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/align_left.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/align_right.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/align_top.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/refresh.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/link/link.html +82 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/media.html +73 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/plainpaste.html +44 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/wordpaste.html +50 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/blank.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/doc.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/editor.css +47 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/flash.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/loading.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/media.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/mp3.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/pdf.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/rar.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/rm.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/xls.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/default/bg.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/default/default.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/default.css +911 -0
- data/lib/generators/rails_kindeditor/migration/USAGE +13 -0
- data/lib/generators/rails_kindeditor/migration/migration_generator.rb +20 -0
- data/lib/generators/rails_kindeditor/migration/templates/migration/migration.rb +15 -0
- data/lib/rails_kindeditor/engine.rb +9 -0
- data/lib/rails_kindeditor/version.rb +3 -0
- data/lib/rails_kindeditor.rb +10 -0
- data/rails_kindeditor.gemspec +24 -0
- metadata +259 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
Description:
|
2
|
+
Copy model , migration and uploader to your application.
|
3
|
+
|
4
|
+
Example:
|
5
|
+
rails generate rails_kindeditor:migration
|
6
|
+
|
7
|
+
This will create:
|
8
|
+
app/models/asset.rb
|
9
|
+
app/models/image.rb
|
10
|
+
app/models/file.rb
|
11
|
+
app/uploaders/image_uploader.rb
|
12
|
+
app/uploaders/file_uploader.rb
|
13
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module RailsKindeditor
|
2
|
+
class MigrationGenerator < Rails::Generators::Base
|
3
|
+
include Rails::Generators::Migration
|
4
|
+
source_root File.expand_path('../templates', __FILE__)
|
5
|
+
desc "Copy migration to your application."
|
6
|
+
|
7
|
+
def copy_migration_file
|
8
|
+
migration_template "migration/migration.rb", "db/migrate/create_kindeditor_assets.rb"
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.next_migration_number(dirname)
|
12
|
+
if ActiveRecord::Base.timestamped_migrations
|
13
|
+
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
14
|
+
else
|
15
|
+
"%.3d" % (current_migration_number(dirname) + 1)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class CreateKindeditorAssets < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :kindeditor_assets do |t|
|
4
|
+
t.string :asset
|
5
|
+
t.integer :file_size
|
6
|
+
t.string :file_type
|
7
|
+
t.timestamps
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.down
|
12
|
+
drop_table :kindeditor_asset
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "rails_kindeditor/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "rails_kindeditor"
|
7
|
+
s.version = RailsKindeditor::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = "Macrow"
|
10
|
+
s.email = "Macrow_wh@163.com"
|
11
|
+
s.homepage = ""
|
12
|
+
s.summary = "kindeditor for rails3"
|
13
|
+
s.description = "kindeditor for rails3, including image and file upload with carrierwave."
|
14
|
+
|
15
|
+
s.add_dependency "carrierwave"
|
16
|
+
|
17
|
+
s.rubyforge_project = "rails_kindeditor"
|
18
|
+
|
19
|
+
s.files = `git ls-files`.split("\n")
|
20
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
21
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
22
|
+
s.require_paths = ["lib"]
|
23
|
+
end
|
24
|
+
|
metadata
ADDED
@@ -0,0 +1,259 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails_kindeditor
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.1
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Macrow
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-06-05 00:00:00 +08:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: carrierwave
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: "0"
|
25
|
+
type: :runtime
|
26
|
+
version_requirements: *id001
|
27
|
+
description: kindeditor for rails3, including image and file upload with carrierwave.
|
28
|
+
email: Macrow_wh@163.com
|
29
|
+
executables: []
|
30
|
+
|
31
|
+
extensions: []
|
32
|
+
|
33
|
+
extra_rdoc_files: []
|
34
|
+
|
35
|
+
files:
|
36
|
+
- .gitignore
|
37
|
+
- Gemfile
|
38
|
+
- README.rdoc
|
39
|
+
- Rakefile
|
40
|
+
- app/controllers/kindeditor/assets_controller.rb
|
41
|
+
- app/models/kindeditor/asset.rb
|
42
|
+
- app/models/kindeditor/file.rb
|
43
|
+
- app/models/kindeditor/image.rb
|
44
|
+
- app/uploaders/kindeditor/file_uploader.rb
|
45
|
+
- app/uploaders/kindeditor/image_uploader.rb
|
46
|
+
- config/routes.rb
|
47
|
+
- lib/generators/rails_kindeditor/install/USAGE
|
48
|
+
- lib/generators/rails_kindeditor/install/install_generator.rb
|
49
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/kindeditor-init.js
|
50
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/kindeditor.js
|
51
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/about.html
|
52
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/accessory.html
|
53
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/advtable/advtable.html
|
54
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/advtable/cell.html
|
55
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/0.gif
|
56
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/1.gif
|
57
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/10.gif
|
58
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/100.gif
|
59
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/101.gif
|
60
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/102.gif
|
61
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/103.gif
|
62
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/104.gif
|
63
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/105.gif
|
64
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/106.gif
|
65
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/107.gif
|
66
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/108.gif
|
67
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/109.gif
|
68
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/11.gif
|
69
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/110.gif
|
70
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/111.gif
|
71
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/112.gif
|
72
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/113.gif
|
73
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/114.gif
|
74
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/115.gif
|
75
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/116.gif
|
76
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/117.gif
|
77
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/118.gif
|
78
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/119.gif
|
79
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/12.gif
|
80
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/120.gif
|
81
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/121.gif
|
82
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/122.gif
|
83
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/123.gif
|
84
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/124.gif
|
85
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/125.gif
|
86
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/126.gif
|
87
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/127.gif
|
88
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/128.gif
|
89
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/129.gif
|
90
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/13.gif
|
91
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/130.gif
|
92
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/131.gif
|
93
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/132.gif
|
94
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/133.gif
|
95
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/134.gif
|
96
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/14.gif
|
97
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/15.gif
|
98
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/16.gif
|
99
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/17.gif
|
100
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/18.gif
|
101
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/19.gif
|
102
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/2.gif
|
103
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/20.gif
|
104
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/21.gif
|
105
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/22.gif
|
106
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/23.gif
|
107
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/24.gif
|
108
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/25.gif
|
109
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/26.gif
|
110
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/27.gif
|
111
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/28.gif
|
112
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/29.gif
|
113
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/3.gif
|
114
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/30.gif
|
115
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/31.gif
|
116
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/32.gif
|
117
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/33.gif
|
118
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/34.gif
|
119
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/35.gif
|
120
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/36.gif
|
121
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/37.gif
|
122
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/38.gif
|
123
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/39.gif
|
124
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/4.gif
|
125
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/40.gif
|
126
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/41.gif
|
127
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/42.gif
|
128
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/43.gif
|
129
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/44.gif
|
130
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/45.gif
|
131
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/46.gif
|
132
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/47.gif
|
133
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/48.gif
|
134
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/49.gif
|
135
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/5.gif
|
136
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/50.gif
|
137
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/51.gif
|
138
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/52.gif
|
139
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/53.gif
|
140
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/54.gif
|
141
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/55.gif
|
142
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/56.gif
|
143
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/57.gif
|
144
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/58.gif
|
145
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/59.gif
|
146
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/6.gif
|
147
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/60.gif
|
148
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/61.gif
|
149
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/62.gif
|
150
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/63.gif
|
151
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/64.gif
|
152
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/65.gif
|
153
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/66.gif
|
154
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/67.gif
|
155
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/68.gif
|
156
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/69.gif
|
157
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/7.gif
|
158
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/70.gif
|
159
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/71.gif
|
160
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/72.gif
|
161
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/73.gif
|
162
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/74.gif
|
163
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/75.gif
|
164
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/76.gif
|
165
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/77.gif
|
166
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/78.gif
|
167
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/79.gif
|
168
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/8.gif
|
169
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/80.gif
|
170
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/81.gif
|
171
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/82.gif
|
172
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/83.gif
|
173
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/84.gif
|
174
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/85.gif
|
175
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/86.gif
|
176
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/87.gif
|
177
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/88.gif
|
178
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/89.gif
|
179
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/9.gif
|
180
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/90.gif
|
181
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/91.gif
|
182
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/92.gif
|
183
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/93.gif
|
184
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/94.gif
|
185
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/95.gif
|
186
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/96.gif
|
187
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/97.gif
|
188
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/98.gif
|
189
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/99.gif
|
190
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/qq.gif
|
191
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.css
|
192
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.html
|
193
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.js
|
194
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/file-16.gif
|
195
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/file-64.gif
|
196
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/folder-16.gif
|
197
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/folder-64.gif
|
198
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/go-up.gif
|
199
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/flash.html
|
200
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/image.html
|
201
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/align_left.gif
|
202
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/align_right.gif
|
203
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/align_top.gif
|
204
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/refresh.gif
|
205
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/link/link.html
|
206
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/media.html
|
207
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/plainpaste.html
|
208
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/wordpaste.html
|
209
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/blank.gif
|
210
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/doc.gif
|
211
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/editor.css
|
212
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/flash.gif
|
213
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/loading.gif
|
214
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/media.gif
|
215
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/mp3.gif
|
216
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/pdf.gif
|
217
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/rar.gif
|
218
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/rm.gif
|
219
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/xls.gif
|
220
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/skins/default.css
|
221
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/skins/default/bg.gif
|
222
|
+
- lib/generators/rails_kindeditor/install/templates/kindeditor/skins/default/default.gif
|
223
|
+
- lib/generators/rails_kindeditor/migration/USAGE
|
224
|
+
- lib/generators/rails_kindeditor/migration/migration_generator.rb
|
225
|
+
- lib/generators/rails_kindeditor/migration/templates/migration/migration.rb
|
226
|
+
- lib/rails_kindeditor.rb
|
227
|
+
- lib/rails_kindeditor/engine.rb
|
228
|
+
- lib/rails_kindeditor/version.rb
|
229
|
+
- rails_kindeditor.gemspec
|
230
|
+
has_rdoc: true
|
231
|
+
homepage: ""
|
232
|
+
licenses: []
|
233
|
+
|
234
|
+
post_install_message:
|
235
|
+
rdoc_options: []
|
236
|
+
|
237
|
+
require_paths:
|
238
|
+
- lib
|
239
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
240
|
+
none: false
|
241
|
+
requirements:
|
242
|
+
- - ">="
|
243
|
+
- !ruby/object:Gem::Version
|
244
|
+
version: "0"
|
245
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
246
|
+
none: false
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: "0"
|
251
|
+
requirements: []
|
252
|
+
|
253
|
+
rubyforge_project: rails_kindeditor
|
254
|
+
rubygems_version: 1.6.2
|
255
|
+
signing_key:
|
256
|
+
specification_version: 3
|
257
|
+
summary: kindeditor for rails3
|
258
|
+
test_files: []
|
259
|
+
|