markdown-toolbar 0.0.4 → 0.0.5
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.
- data/README.markdown +36 -0
- data/lib/markdown-toolbar/version.rb +1 -1
- data/vendor/assets/stylesheets/markdown-toolbar.scss.erb +1 -1
- metadata +21 -10
- data/README.rdoc +0 -29
data/README.markdown
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
Markdown Toolbar
|
2
|
+
================
|
3
|
+
|
4
|
+
Markdown Toolbar is an lightweight helper buttons that appear over textarea
|
5
|
+
|
6
|
+

|
7
|
+
|
8
|
+
Try a demonstration [demonstration](http://www.vitalik.com.ua/markdown-toolbar/)
|
9
|
+
|
10
|
+
|
11
|
+
Installation
|
12
|
+
------------
|
13
|
+
|
14
|
+
In `Rails 3.1`, add this to your Gemfile and run the +bundle+ command.
|
15
|
+
|
16
|
+
gem "markdown-toolbar"
|
17
|
+
|
18
|
+
Alternatively, you can install it as a plugin.
|
19
|
+
|
20
|
+
rails plugin install git://github.com/fuksito/markdown-toolbar.git
|
21
|
+
|
22
|
+
|
23
|
+
Getting Started
|
24
|
+
---------------
|
25
|
+
|
26
|
+
Markdown Toolbar requires you to add such lines to your application.js
|
27
|
+
|
28
|
+
//= require markdown-toolbar
|
29
|
+
|
30
|
+
and to application.css
|
31
|
+
|
32
|
+
*= require markdown-toolbar
|
33
|
+
|
34
|
+
Then you can add toolbar to any textarea by adding a class +markdown-toolbar+ to it
|
35
|
+
|
36
|
+
<%= f.text_area :text, :class => "markdown-toolbar" %>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
}
|
31
31
|
<% %w{ bold italic strike list_bullets list_numbers heading_2 heading_3 link image}.each_with_index do |button, index| %>
|
32
32
|
.mdt_button_<%= button %> {
|
33
|
-
background: url(
|
33
|
+
background: url( image_path(<%= "text_#{button}.png" %> ) );
|
34
34
|
&:active{
|
35
35
|
background-position: 1px 1px;
|
36
36
|
}
|
metadata
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markdown-toolbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 5
|
9
|
+
version: 0.0.5
|
6
10
|
platform: ruby
|
7
11
|
authors:
|
8
12
|
- Vitaliy Yanchuk
|
@@ -10,17 +14,20 @@ autorequire:
|
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
16
|
|
13
|
-
date: 2011-09-
|
17
|
+
date: 2011-09-10 00:00:00 +03:00
|
14
18
|
default_executable:
|
15
19
|
dependencies:
|
16
20
|
- !ruby/object:Gem::Dependency
|
17
21
|
name: rails
|
18
22
|
prerelease: false
|
19
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
-
none: false
|
21
24
|
requirements:
|
22
25
|
- - ~>
|
23
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 3
|
29
|
+
- 1
|
30
|
+
- 0
|
24
31
|
version: 3.1.0
|
25
32
|
type: :development
|
26
33
|
version_requirements: *id001
|
@@ -28,10 +35,11 @@ dependencies:
|
|
28
35
|
name: jquery-rails
|
29
36
|
prerelease: false
|
30
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
-
none: false
|
32
38
|
requirements:
|
33
39
|
- - ">="
|
34
40
|
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 0
|
35
43
|
version: "0"
|
36
44
|
type: :development
|
37
45
|
version_requirements: *id002
|
@@ -39,10 +47,11 @@ dependencies:
|
|
39
47
|
name: coffee-script
|
40
48
|
prerelease: false
|
41
49
|
requirement: &id003 !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
50
|
requirements:
|
44
51
|
- - ">="
|
45
52
|
- !ruby/object:Gem::Version
|
53
|
+
segments:
|
54
|
+
- 0
|
46
55
|
version: "0"
|
47
56
|
type: :development
|
48
57
|
version_requirements: *id003
|
@@ -58,7 +67,7 @@ extra_rdoc_files: []
|
|
58
67
|
files:
|
59
68
|
- .gitignore
|
60
69
|
- Gemfile
|
61
|
-
- README.
|
70
|
+
- README.markdown
|
62
71
|
- Rakefile
|
63
72
|
- lib/markdown-toolbar.rb
|
64
73
|
- lib/markdown-toolbar/engine.rb
|
@@ -93,21 +102,23 @@ rdoc_options: []
|
|
93
102
|
require_paths:
|
94
103
|
- lib
|
95
104
|
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
105
|
requirements:
|
98
106
|
- - ">="
|
99
107
|
- !ruby/object:Gem::Version
|
108
|
+
segments:
|
109
|
+
- 0
|
100
110
|
version: "0"
|
101
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
112
|
requirements:
|
104
113
|
- - ">="
|
105
114
|
- !ruby/object:Gem::Version
|
115
|
+
segments:
|
116
|
+
- 0
|
106
117
|
version: "0"
|
107
118
|
requirements: []
|
108
119
|
|
109
120
|
rubyforge_project: markdown-toolbar
|
110
|
-
rubygems_version: 1.6
|
121
|
+
rubygems_version: 1.3.6
|
111
122
|
signing_key:
|
112
123
|
specification_version: 3
|
113
124
|
summary: Wrapper to help add markdown syntax into textarea
|
data/README.rdoc
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
= Markdown Toolbar
|
2
|
-
|
3
|
-
Markdown Toolbar is an lightweight helper buttons that appear over textarea
|
4
|
-
|
5
|
-
|
6
|
-
== Installation
|
7
|
-
|
8
|
-
In <b>Rails 3.1</b>, add this to your Gemfile and run the +bundle+ command.
|
9
|
-
|
10
|
-
gem "markdown-toolbar"
|
11
|
-
|
12
|
-
Alternatively, you can install it as a plugin.
|
13
|
-
|
14
|
-
rails plugin install git://github.com/fuksito/markdown-toolbar.git
|
15
|
-
|
16
|
-
|
17
|
-
== Getting Started
|
18
|
-
|
19
|
-
Markdown Toolbar requires you to add such lines to your application.js
|
20
|
-
|
21
|
-
//= require markdown-toolbar
|
22
|
-
|
23
|
-
and to application.css
|
24
|
-
|
25
|
-
*= require markdown-toolbar
|
26
|
-
|
27
|
-
Then you can add toolbar to any textarea by adding a class +markdown-toolbar+ to it
|
28
|
-
|
29
|
-
<%= f.text_area :text, :class => "markdown-toolbar" %>
|