bootstrap-wysihtml5-rails 0.3.3.5 → 0.3.3.6
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 +1 -1
- data/Rakefile +24 -1
- data/lib/bootstrap-wysihtml5-rails/version.rb +1 -1
- data/vendor/assets/javascripts/bootstrap-wysihtml5/wysihtml5x-toolbar.js +17 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ffa2e47bf33d44cb21cd309bb3ccc61a32e9917
|
|
4
|
+
data.tar.gz: 0730f8888188473aeeba961687bbf64a773b44e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d4aafc8717209ac58080c527410a722240f16169e7d1cb2e28b3b9787a0d425128f335fa3d64c341c24e479ec8fe5863002eb30ec6aac1de458ffa6c80ea0888
|
|
7
|
+
data.tar.gz: e1382d039de23669c31bf6b0dbdf6b25575047a91fcf981d27fdfe17baa3f10c35b842ac95985477016aa0530a658a186bc03fe5d6da4e1d5607f96227e607af
|
data/README.md
CHANGED
|
@@ -28,7 +28,7 @@ gem 'bootstrap-wysihtml5-rails'
|
|
|
28
28
|
or you can install from latest build;
|
|
29
29
|
|
|
30
30
|
``` ruby
|
|
31
|
-
gem 'bootstrap-wysihtml5-rails', :
|
|
31
|
+
gem 'bootstrap-wysihtml5-rails', github: 'nerian/bootstrap-wysihtml5-rails'
|
|
32
32
|
```
|
|
33
33
|
and run `bundle install`.
|
|
34
34
|
|
data/Rakefile
CHANGED
|
@@ -5,6 +5,24 @@ require 'json'
|
|
|
5
5
|
BASE_FOLDER = 'bower_components/bootstrap3-wysihtml5-bower/dist'
|
|
6
6
|
WYSIHTMLX = 'bower_components/wysihtml5x/dist'
|
|
7
7
|
HANDLEBARS = 'bower_components/handlebars'
|
|
8
|
+
COLORS = '"._wysihtml5-temp { display: none; }",
|
|
9
|
+
".wysiwyg-color-black {color: black;}",
|
|
10
|
+
".wysiwyg-color-silver {color: silver;}",
|
|
11
|
+
".wysiwyg-color-gray {color: gray;}",
|
|
12
|
+
".wysiwyg-color-white {color: white;}",
|
|
13
|
+
".wysiwyg-color-maroon {color: maroon;}",
|
|
14
|
+
".wysiwyg-color-red {color: red;}",
|
|
15
|
+
".wysiwyg-color-purple {color: purple;}",
|
|
16
|
+
".wysiwyg-color-fuchsia {color: fuchsia;}",
|
|
17
|
+
".wysiwyg-color-green {color: green;}",
|
|
18
|
+
".wysiwyg-color-lime {color: lime;}",
|
|
19
|
+
".wysiwyg-color-olive {color: olive;}",
|
|
20
|
+
".wysiwyg-color-yellow {color: yellow;}",
|
|
21
|
+
".wysiwyg-color-navy {color: navy;}",
|
|
22
|
+
".wysiwyg-color-blue {color: blue;}",
|
|
23
|
+
".wysiwyg-color-teal {color: teal;}",
|
|
24
|
+
".wysiwyg-color-aqua {color: aqua;}",
|
|
25
|
+
".wysiwyg-color-orange {color: orange;}",'
|
|
8
26
|
|
|
9
27
|
def copy_locales
|
|
10
28
|
Dir["#{BASE_FOLDER}/locales/*"].each do |file|
|
|
@@ -50,6 +68,11 @@ task 'update' do
|
|
|
50
68
|
file = file.gsub('<input value=\"http://\" class=\"bootstrap-wysihtml5-insert-image-url form-control\">', '<input value=\"http://\" class=\"bootstrap-wysihtml5-insert-image-url form-control\" data-wysihtml5-dialog-field=\"src\">')
|
|
51
69
|
File.write(file_path, file)
|
|
52
70
|
|
|
71
|
+
file_path = 'vendor/assets/javascripts/bootstrap-wysihtml5/wysihtml5x-toolbar.js'
|
|
72
|
+
file = File.read(file_path)
|
|
73
|
+
file = file.gsub('"._wysihtml5-temp { display: none; }",', COLORS)
|
|
74
|
+
File.write(file_path, file)
|
|
75
|
+
|
|
53
76
|
print_version
|
|
54
77
|
end
|
|
55
78
|
|
|
@@ -65,4 +88,4 @@ task :publish => :build do
|
|
|
65
88
|
system("git tag -a #{version} -m 'Release #{version}' ") unless tags.include?(version)
|
|
66
89
|
system("gem push bootstrap-wysihtml5-rails-#{version}.gem")
|
|
67
90
|
system("git push --follow-tags")
|
|
68
|
-
end
|
|
91
|
+
end
|
|
@@ -12291,6 +12291,23 @@ wysihtml5.views.View = Base.extend(
|
|
|
12291
12291
|
"body { height: 100%; padding: 1px 0 0 0; margin: -1px 0 0 0; }",
|
|
12292
12292
|
"body > p:first-child { margin-top: 0; }",
|
|
12293
12293
|
"._wysihtml5-temp { display: none; }",
|
|
12294
|
+
".wysiwyg-color-black {color: black;}",
|
|
12295
|
+
".wysiwyg-color-silver {color: silver;}",
|
|
12296
|
+
".wysiwyg-color-gray {color: gray;}",
|
|
12297
|
+
".wysiwyg-color-white {color: white;}",
|
|
12298
|
+
".wysiwyg-color-maroon {color: maroon;}",
|
|
12299
|
+
".wysiwyg-color-red {color: red;}",
|
|
12300
|
+
".wysiwyg-color-purple {color: purple;}",
|
|
12301
|
+
".wysiwyg-color-fuchsia {color: fuchsia;}",
|
|
12302
|
+
".wysiwyg-color-green {color: green;}",
|
|
12303
|
+
".wysiwyg-color-lime {color: lime;}",
|
|
12304
|
+
".wysiwyg-color-olive {color: olive;}",
|
|
12305
|
+
".wysiwyg-color-yellow {color: yellow;}",
|
|
12306
|
+
".wysiwyg-color-navy {color: navy;}",
|
|
12307
|
+
".wysiwyg-color-blue {color: blue;}",
|
|
12308
|
+
".wysiwyg-color-teal {color: teal;}",
|
|
12309
|
+
".wysiwyg-color-aqua {color: aqua;}",
|
|
12310
|
+
".wysiwyg-color-orange {color: orange;}",
|
|
12294
12311
|
wysihtml5.browser.isGecko ?
|
|
12295
12312
|
"body.placeholder { color: graytext !important; }" :
|
|
12296
12313
|
"body.placeholder { color: #a9a9a9 !important; }",
|