rails_kindeditor 0.3.19 → 0.3.20
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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/rails_kindeditor/helper.rb +2 -2
- data/lib/rails_kindeditor/version.rb +1 -1
- data/vendor/assets/javascripts/kindeditor/kindeditor.js +0 -3
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66ce0b82bd4863150a143d291636ef6267e039c7
|
4
|
+
data.tar.gz: cbd50c7c0129e8c60526bdd77250ca7c4171aeed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5c25553dc71eaee18a1b7c4d11c1411110d624c90b15525aae0ffe3c5171ba563cf63c2e29d37123a23e906b1f1de5236fcb724ad511963dbc2f17384fa66eb
|
7
|
+
data.tar.gz: 302641a3e917f8d38dc8964a8cb016f6cc30b5a2405a543b2ca97eac495a1f2467abb4191458ec8dbd48b5a3cfbeec8587b9e5f0b4c8d0f59966d6751d513a0b
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ rails_kindeditor will helps your rails app integrate with kindeditor, includes i
|
|
10
10
|
### Add this to your Gemfile
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
gem 'rails_kindeditor', '~> 0.3.
|
13
|
+
gem 'rails_kindeditor', '~> 0.3.20'
|
14
14
|
```
|
15
15
|
|
16
16
|
### Run "bundle" command.
|
@@ -172,7 +172,7 @@ rails_kindeditor可以帮助你的rails程序集成kindeditor,包括了图片和
|
|
172
172
|
### 将下面代码加入Gemfile:
|
173
173
|
|
174
174
|
```ruby
|
175
|
-
gem 'rails_kindeditor', '~> 0.3.
|
175
|
+
gem 'rails_kindeditor', '~> 0.3.20'
|
176
176
|
```
|
177
177
|
|
178
178
|
### 运行"bundle"命令:
|
@@ -36,8 +36,8 @@ module RailsKindeditor
|
|
36
36
|
options.reverse_merge!(:width => '100%')
|
37
37
|
options.reverse_merge!(:height => 300)
|
38
38
|
options.reverse_merge!(:allowFileManager => true)
|
39
|
-
options.merge!(:uploadJson =>
|
40
|
-
options.merge!(:fileManagerJson =>
|
39
|
+
options.merge!(:uploadJson => "#{main_app.root_url}kindeditor/upload")
|
40
|
+
options.merge!(:fileManagerJson => "#{main_app.root_url}kindeditor/filemanager")
|
41
41
|
if options[:simple_mode] == true
|
42
42
|
options.merge!(:items => %w{fontname fontsize | forecolor hilitecolor bold italic underline removeformat | justifyleft justifycenter justifyright insertorderedlist insertunorderedlist | emoticons image link})
|
43
43
|
end
|
@@ -224,9 +224,6 @@ function _getBasePath() {
|
|
224
224
|
if (/application[\w\-\.]*\.js/.test(src)) { // in production mode, we need application.js.
|
225
225
|
return src.substring(0, src.lastIndexOf('/') + 1) + 'kindeditor/';
|
226
226
|
}
|
227
|
-
if (/[\w\-\.]*\.js/.test(src)) { // if no application.js found, we just use the first js file path.
|
228
|
-
return src.substring(0, src.lastIndexOf('/') + 1) + 'kindeditor/';
|
229
|
-
}
|
230
227
|
}
|
231
228
|
return '/assets/kindeditor/';
|
232
229
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_kindeditor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Macrow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carrierwave
|
@@ -305,4 +305,3 @@ signing_key:
|
|
305
305
|
specification_version: 4
|
306
306
|
summary: Kindeditor for Ruby on Rails
|
307
307
|
test_files: []
|
308
|
-
has_rdoc:
|