radiant-filter_toolbars-extension 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -24,7 +24,7 @@ gem install radiant-filter_toolbars-extension
|
|
24
24
|
Include the gem in your environment.rb :
|
25
25
|
|
26
26
|
```
|
27
|
-
config.gem 'radiant-filter_toolbars-extension', :version => '~> 1.0.
|
27
|
+
config.gem 'radiant-filter_toolbars-extension', :version => '~> 1.0.2'
|
28
28
|
```
|
29
29
|
|
30
30
|
Run the update task :
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module RadiantFilterToolbarsExtension
|
2
|
-
VERSION = '1.0.
|
2
|
+
VERSION = '1.0.2'
|
3
3
|
SUMMARY = %q{WYSIWYG Toolbar for Radiant CMS}
|
4
4
|
DESCRIPTION = %q{Adds a WYSIWYG toolbar for the textile and markdown filters.}
|
5
5
|
URL = "https://github.com/jsntv200/radiant-filter_toolbars-extension"
|
@@ -20,6 +20,12 @@ var FilterToolBars = {
|
|
20
20
|
|
21
21
|
update_filter: function(filter) {
|
22
22
|
this.filter = filter || null;
|
23
|
+
|
24
|
+
// Just use Markdown for Smartypants
|
25
|
+
if (this.filter == "SmartyPants") {
|
26
|
+
this.filter = "Markdown";
|
27
|
+
}
|
28
|
+
|
23
29
|
this.filter == null ? this.hide() : this.show();
|
24
30
|
},
|
25
31
|
|
@@ -121,6 +127,6 @@ FilterToolBars.SelectBehavior = Behavior.create({
|
|
121
127
|
Event.addBehavior({
|
122
128
|
'.part textarea' : FilterToolBars.AttachBehavior(),
|
123
129
|
'.tabs .tab' : FilterToolBars.TabBehavior(),
|
124
|
-
'.part select' : FilterToolBars.SelectBehavior()
|
130
|
+
'.part select' : FilterToolBars.SelectBehavior(),
|
131
|
+
'.button_image' : Popup.TriggerBehavior()
|
125
132
|
});
|
126
|
-
|
@@ -0,0 +1,78 @@
|
|
1
|
+
.textarea
|
2
|
+
padding: 2px
|
3
|
+
|
4
|
+
.filter_toolbar
|
5
|
+
position: relative
|
6
|
+
margin: 0
|
7
|
+
padding: 0 2px
|
8
|
+
border: 1px solid #ccc
|
9
|
+
background-color: #F6F6F6
|
10
|
+
width: 100%
|
11
|
+
height: 26px
|
12
|
+
border-bottom: 0
|
13
|
+
|
14
|
+
li
|
15
|
+
list-style: none
|
16
|
+
float: left
|
17
|
+
|
18
|
+
span
|
19
|
+
display: none
|
20
|
+
|
21
|
+
a
|
22
|
+
margin: 2px
|
23
|
+
width: 20px
|
24
|
+
height: 20px
|
25
|
+
float: left
|
26
|
+
display: block
|
27
|
+
background-image: url('/images/admin/filter_toolbars/icons.gif')
|
28
|
+
border: 1px solid #f6f6f6
|
29
|
+
|
30
|
+
&:hover
|
31
|
+
border-color: #0A246A
|
32
|
+
background-color: #B2BBD0
|
33
|
+
|
34
|
+
.button_help
|
35
|
+
position: absolute
|
36
|
+
top: 0
|
37
|
+
right: 0
|
38
|
+
|
39
|
+
&:hover
|
40
|
+
border-left-color: #5f9846
|
41
|
+
border-right-color: #5f9846
|
42
|
+
|
43
|
+
.button_bold
|
44
|
+
background-position: 0 0
|
45
|
+
|
46
|
+
.button_italics
|
47
|
+
background-position: -60px 0
|
48
|
+
|
49
|
+
.button_h1
|
50
|
+
background-position: -660px 0
|
51
|
+
|
52
|
+
.button_h2
|
53
|
+
background-position: -680px 0
|
54
|
+
|
55
|
+
.button_h3
|
56
|
+
background-position: -700px 0
|
57
|
+
|
58
|
+
.button_h4
|
59
|
+
background-position: -720px 0
|
60
|
+
|
61
|
+
.button_ordered
|
62
|
+
background-position: -80px 0
|
63
|
+
|
64
|
+
.button_unordered
|
65
|
+
background-position: -20px 0
|
66
|
+
|
67
|
+
.button_link
|
68
|
+
background-position: -500px 0
|
69
|
+
|
70
|
+
.button_image
|
71
|
+
background-position: -380px 0
|
72
|
+
|
73
|
+
.button_quote
|
74
|
+
background-position: -220px 0
|
75
|
+
|
76
|
+
.button_help
|
77
|
+
background-position: -340px 0
|
78
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-filter_toolbars-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jason Taylor
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-08-04 00:00:00 +10:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -42,7 +42,7 @@ files:
|
|
42
42
|
- public/javascripts/admin/filter_toolbars/filter_toolbars.js
|
43
43
|
- public/javascripts/admin/filter_toolbars/filters/markdown.js
|
44
44
|
- public/javascripts/admin/filter_toolbars/filters/textile.js
|
45
|
-
- public/stylesheets/sass/admin/filter_toolbars.
|
45
|
+
- public/stylesheets/sass/admin/filter_toolbars.sass
|
46
46
|
- radiant-filter_toolbars-extension.gemspec
|
47
47
|
- Rakefile
|
48
48
|
- README.md
|
@@ -52,7 +52,7 @@ has_rdoc: true
|
|
52
52
|
homepage: https://github.com/jsntv200/radiant-filter_toolbars-extension
|
53
53
|
licenses: []
|
54
54
|
|
55
|
-
post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-filter_toolbars-extension', :version => '~>1.0.
|
55
|
+
post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-filter_toolbars-extension', :version => '~>1.0.2'\n "
|
56
56
|
rdoc_options: []
|
57
57
|
|
58
58
|
require_paths:
|
@@ -1,62 +0,0 @@
|
|
1
|
-
.textarea {
|
2
|
-
padding:2px;
|
3
|
-
}
|
4
|
-
|
5
|
-
.filter_toolbar {
|
6
|
-
position:relative;
|
7
|
-
margin:0;
|
8
|
-
padding:0 2px;
|
9
|
-
border:1px solid #ccc;
|
10
|
-
background-color:#F6F6F6;
|
11
|
-
width:100%;
|
12
|
-
height:26px;
|
13
|
-
border-bottom:0;
|
14
|
-
|
15
|
-
li {
|
16
|
-
list-style:none;
|
17
|
-
float:left;
|
18
|
-
|
19
|
-
span {
|
20
|
-
display:none;
|
21
|
-
}
|
22
|
-
|
23
|
-
a {
|
24
|
-
margin:2px;
|
25
|
-
width:20px;
|
26
|
-
height:20px;
|
27
|
-
float:left;
|
28
|
-
display:block;
|
29
|
-
background-image:url('/images/admin/filter_toolbars/icons.gif');
|
30
|
-
border:1px solid #f6f6f6;
|
31
|
-
|
32
|
-
&:hover {
|
33
|
-
border-color:#0A246A;
|
34
|
-
background-color:#B2BBD0;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
|
-
.button_help {
|
39
|
-
position:absolute;
|
40
|
-
top:0;
|
41
|
-
right:0;
|
42
|
-
|
43
|
-
&:hover {
|
44
|
-
border-left-color:#5f9846;
|
45
|
-
border-right-color:#5f9846;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
.button_bold { background-position:0 0 }
|
50
|
-
.button_italics { background-position:-60px 0 }
|
51
|
-
.button_h1 { background-position:-660px 0 }
|
52
|
-
.button_h2 { background-position:-680px 0 }
|
53
|
-
.button_h3 { background-position:-700px 0 }
|
54
|
-
.button_h4 { background-position:-720px 0 }
|
55
|
-
.button_ordered { background-position:-80px 0 }
|
56
|
-
.button_unordered { background-position:-20px 0 }
|
57
|
-
.button_link { background-position:-500px 0 }
|
58
|
-
.button_image { background-position:-380px 0 }
|
59
|
-
.button_quote { background-position:-220px 0 }
|
60
|
-
.button_help { background-position:-340px 0 }
|
61
|
-
}
|
62
|
-
}
|