loyal_rails_kindeditor 0.0.3 → 0.0.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.
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "loyal_rails_kindeditor"
|
6
|
+
# s.version = RailsKindeditor::VERSION
|
7
|
+
s.version = '0.0.4'
|
8
|
+
|
9
|
+
s.platform = Gem::Platform::RUBY
|
10
|
+
s.authors = "happy"
|
11
|
+
s.email = "andywang7259@gmail.com"
|
12
|
+
s.homepage = "http://github.com/blogsoso"
|
13
|
+
s.summary = "Kindeditor for Ruby on Rails"
|
14
|
+
s.description = "rails_kindeditor will helps your rails app integrate with kindeditor, including images and files uploading."
|
15
|
+
|
16
|
+
s.rubyforge_project = "loyal_rails_kindeditor"
|
17
|
+
|
18
|
+
s.files = `git ls-files`.split("\n")
|
19
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
|
22
|
+
s.add_dependency("carrierwave")
|
23
|
+
s.add_dependency("mini_magick")
|
24
|
+
end
|
Binary file
|
@@ -0,0 +1,98 @@
|
|
1
|
+
html {margin:0;padding:0;}
|
2
|
+
body {margin:0;padding:5px;}
|
3
|
+
body, td {
|
4
|
+
font: 12px "sans serif",tahoma,verdana,helvetica;
|
5
|
+
}
|
6
|
+
body, p, div {word-wrap: break-word;}
|
7
|
+
p {margin:5px 0;}
|
8
|
+
table {border-collapse:collapse;}
|
9
|
+
img {border:0;}
|
10
|
+
noscript {display:none;}
|
11
|
+
table.ke-zeroborder td {border:1px dotted #AAA;}
|
12
|
+
img.ke-flash {
|
13
|
+
border:1px solid #AAA;
|
14
|
+
background-image:url(./flash.gif);
|
15
|
+
background-position:center center;
|
16
|
+
background-repeat:no-repeat;
|
17
|
+
width:100px;
|
18
|
+
height:100px;
|
19
|
+
}
|
20
|
+
img.ke-rm {
|
21
|
+
border:1px solid #AAA;
|
22
|
+
background-image:url(./rm.gif);
|
23
|
+
background-position:center center;
|
24
|
+
background-repeat:no-repeat;
|
25
|
+
width:100px;
|
26
|
+
height:100px;
|
27
|
+
}
|
28
|
+
img.ke-media {
|
29
|
+
border:1px solid #AAA;
|
30
|
+
background-image:url(./media.gif);
|
31
|
+
background-position:center center;
|
32
|
+
background-repeat:no-repeat;
|
33
|
+
width:100px;
|
34
|
+
height:100px;
|
35
|
+
}
|
36
|
+
img.ke-anchor {
|
37
|
+
border:1px dashed #666;
|
38
|
+
width:16px;
|
39
|
+
height:16px;
|
40
|
+
}
|
41
|
+
.ke-script, .ke-noscript, .ke-display-none {
|
42
|
+
display:none;
|
43
|
+
font-size:0;
|
44
|
+
width:0;
|
45
|
+
height:0;
|
46
|
+
}
|
47
|
+
.ke-pagebreak {
|
48
|
+
border:1px dotted #AAA;
|
49
|
+
font-size:0;
|
50
|
+
height:2px;
|
51
|
+
}
|
52
|
+
|
53
|
+
.ke-content {
|
54
|
+
font-size: 10pt;
|
55
|
+
}
|
56
|
+
.ke-content pre {
|
57
|
+
font-size:9pt;
|
58
|
+
font-family:Courier New,Arial;
|
59
|
+
border:1px solid #ddd;
|
60
|
+
border-left:5px solid #666;
|
61
|
+
background:#f6f6f6;
|
62
|
+
padding:5px;
|
63
|
+
}
|
64
|
+
|
65
|
+
.ke-content code {
|
66
|
+
margin: 0 2px;
|
67
|
+
padding: 0 5px;
|
68
|
+
white-space: nowrap;
|
69
|
+
border: 1px solid #DDD;
|
70
|
+
background-color: #F6F6F6;
|
71
|
+
border-radius: 3px;
|
72
|
+
}
|
73
|
+
|
74
|
+
.ke-content pre>code {
|
75
|
+
margin: 0;
|
76
|
+
padding: 0;
|
77
|
+
white-space: pre;
|
78
|
+
border: none;
|
79
|
+
background: transparent;
|
80
|
+
}
|
81
|
+
|
82
|
+
.ke-content pre code {
|
83
|
+
background-color: transparent;
|
84
|
+
border: none;
|
85
|
+
}
|
86
|
+
|
87
|
+
.ke-content p {
|
88
|
+
margin: 0 0 15px 0;
|
89
|
+
margin-bottom:15pt;
|
90
|
+
line-height:1.5;
|
91
|
+
letter-spacing: 1px;
|
92
|
+
}
|
93
|
+
|
94
|
+
.ke-content div.ref {border:1px solid #ddd;margin:0 0 10px 0;padding:2px;font-size:9pt;background:#ffe;}
|
95
|
+
.ke-content div.ref h4 {margin:0;padding:1px 3px;background:#CC9966;color:#fff;font-size:9pt;font-weight:normal;}
|
96
|
+
.ke-content div.ref .ref_body {margin:0;padding:2px;line-height:20px;color:#666;font-size:9pt;}
|
97
|
+
|
98
|
+
.ke-content blockquote {margin:15px 10px;border:2px solid #eee;padding:5px 5px 5px 35px;background:#f4f5f7 url('./blockquote.gif') no-repeat left top;color:#060;font-size:9pt;}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loyal_rails_kindeditor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- README.md
|
56
56
|
- Rakefile
|
57
57
|
- app/assets/javascripts/kindeditor.js
|
58
|
+
- app/assets/stylesheets/kindeditor.css
|
58
59
|
- app/controllers/kindeditor/assets_controller.rb
|
59
60
|
- app/uploaders/kindeditor/asset_uploader.rb
|
60
61
|
- app/uploaders/kindeditor/file_uploader.rb
|
@@ -86,6 +87,7 @@ files:
|
|
86
87
|
- lib/rails_kindeditor/simple_form.rb
|
87
88
|
- lib/rails_kindeditor/version.rb
|
88
89
|
- lib/tasks/assets.rake
|
90
|
+
- loyal_rails_kindeditor.gemspec
|
89
91
|
- rails_kindeditor.gemspec
|
90
92
|
- screenshots/rails_kindeditor.png
|
91
93
|
- screenshots/simple_mode.png
|
@@ -276,7 +278,9 @@ files:
|
|
276
278
|
- vendor/assets/javascripts/kindeditor/plugins/wordpaste/wordpaste.js
|
277
279
|
- vendor/assets/javascripts/kindeditor/themes/common/anchor.gif
|
278
280
|
- vendor/assets/javascripts/kindeditor/themes/common/blank.gif
|
281
|
+
- vendor/assets/javascripts/kindeditor/themes/common/blockquote.gif
|
279
282
|
- vendor/assets/javascripts/kindeditor/themes/common/flash.gif
|
283
|
+
- vendor/assets/javascripts/kindeditor/themes/common/iframe.css
|
280
284
|
- vendor/assets/javascripts/kindeditor/themes/common/loading.gif
|
281
285
|
- vendor/assets/javascripts/kindeditor/themes/common/media.gif
|
282
286
|
- vendor/assets/javascripts/kindeditor/themes/common/rm.gif
|