rails_wangeditor 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb56680ead309cd6b92fde0ed133eceb7270eea6
|
4
|
+
data.tar.gz: dfd700913360abbd36f276d580dc7868d58d6ffe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 695ac1b01d6af193d5e1252c3918ddd90146489d836ba261c152850c3afaf85244b748bf39b360ac6f44b433582ebbfdc417f658d67f14c8a69b5664ce507d1d
|
7
|
+
data.tar.gz: c8ffbc37170cdd2f3dccd1bf4ecfa656590c7c42a0b614f840e2763bb589adff2b4838912df20d8e40e99a80d535bc2dc6917d45c82f9e2ffaf3cc620b4b1c1e
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# wangEditor for Ruby on Rails [![Gem Version](https://badge.fury.io/rb/rails_wangeditor.
|
1
|
+
# wangEditor for Ruby on Rails [![Gem Version](https://badge.fury.io/rb/rails_wangeditor.svg)](http://badge.fury.io/rb/rails_wangeditor)
|
2
2
|
|
3
3
|
wangEditor is an easy, fast and beautiful WYSIWYG javascript editor, visit [https://github.com/wangfupeng1988/wangEditor](https://github.com/wangfupeng1988/wangEditor) for details.
|
4
4
|
rails_wangeditor will helps your rails app integrate with wangEditor, includes images uploading.
|
@@ -23,7 +23,11 @@ module RailsWangeditor
|
|
23
23
|
if File.exist?('app/assets/stylesheets/application.css')
|
24
24
|
insert_into_file "app/assets/stylesheets/application.css", "*= require wangEditor\n", :before => "*= require_self"
|
25
25
|
else
|
26
|
-
|
26
|
+
if File.exist?('app/assets/stylesheets/application.scss')
|
27
|
+
insert_into_file "app/assets/stylesheets/application.scss", "*= require wangEditor\n", :before => "*= require_self"
|
28
|
+
else
|
29
|
+
copy_file "application.css", "app/assets/stylesheets/application.css"
|
30
|
+
end
|
27
31
|
end
|
28
32
|
end
|
29
33
|
end
|