markdown-toolbar 1.0.0 → 1.0.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea00b4d7b39c3a8d684ccfea5c0c0b5b32209c0a
|
|
4
|
+
data.tar.gz: 184032485263a37005bff96b0bf738574aa0c79a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c04b64557c98cb95376d58c978f3c1fa37b50ffa51341d7cbdbc854866d1a68cf0e10fd41be64006e5e1840d1e8fc3fc503ca2e7c146192621d4cd51e3bbed7
|
|
7
|
+
data.tar.gz: d1a6ca32e0148b7938026647636c56f874f9168058a5e24f81dca26e63f11ee1e65605460e559e1fe6e4f7908b4682b81a9af2c852b9214cb78828761abd4100
|
data/README.markdown
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
Markdown Toolbar
|
|
2
2
|
================
|
|
3
3
|
|
|
4
|
+
[](http://badge.fury.io/rb/markdown-toolbar)
|
|
5
|
+
|
|
4
6
|
Markdown Toolbar is an lightweight helper buttons that appear over textarea
|
|
5
7
|
|
|
6
8
|
[](http://markdown-toolbar-example.herokuapp.com/)
|
|
@@ -14,15 +16,17 @@ Installation
|
|
|
14
16
|
|
|
15
17
|
### Rails 4.1+
|
|
16
18
|
|
|
17
|
-
Use version 1.0.0
|
|
19
|
+
Use version 1.0.0, add to Gemfile:
|
|
20
|
+
|
|
21
|
+
gem "markdown-toolbar", "~> 1.0"
|
|
18
22
|
|
|
19
23
|
### Rails 3 and before 4.1
|
|
20
24
|
|
|
21
|
-
use version 0.2.4
|
|
25
|
+
use version 0.2.4, add to Gemfile
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
gem "markdown-toolbar", "~> 0.2.4"
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
And run the **bundle** command.
|
|
26
30
|
|
|
27
31
|
|
|
28
32
|
Getting Started
|
|
@@ -5,6 +5,7 @@ $(function(){
|
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
function MarkdownToolbar(textarea){
|
|
8
|
+
var $this;
|
|
8
9
|
|
|
9
10
|
this.init = function(textarea){
|
|
10
11
|
$this = this;
|
|
@@ -37,7 +38,12 @@ function MarkdownToolbar(textarea){
|
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
this.add_button_image = function(title, button_id){
|
|
40
|
-
|
|
41
|
+
var button = "<div class='mdt_button mdt_button_" + button_id;
|
|
42
|
+
if(title) {
|
|
43
|
+
button += "' title='"+ title;
|
|
44
|
+
}
|
|
45
|
+
button += "'></div>";
|
|
46
|
+
$(".mdt_buttons", this.panel).append(button);
|
|
41
47
|
}
|
|
42
48
|
|
|
43
49
|
this.bind_action = function(options){
|
|
@@ -193,4 +199,4 @@ function MarkdownToolbar(textarea){
|
|
|
193
199
|
}
|
|
194
200
|
|
|
195
201
|
this.init(textarea);
|
|
196
|
-
}
|
|
202
|
+
}
|
metadata
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: markdown-toolbar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vitaliy Yanchuk
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-09-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sprockets
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - ~>
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '2.0'
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - ~>
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '2.0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: sinatra
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
|
-
description:
|
|
41
|
+
description: " Helps with markdown editing "
|
|
42
42
|
email:
|
|
43
43
|
- fuksito@gmail.com
|
|
44
44
|
executables: []
|
|
45
45
|
extensions: []
|
|
46
46
|
extra_rdoc_files: []
|
|
47
47
|
files:
|
|
48
|
-
- .gitignore
|
|
48
|
+
- ".gitignore"
|
|
49
49
|
- Changes.markdown
|
|
50
50
|
- Gemfile
|
|
51
51
|
- README.markdown
|
|
@@ -89,17 +89,17 @@ require_paths:
|
|
|
89
89
|
- lib
|
|
90
90
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
91
|
requirements:
|
|
92
|
-
- -
|
|
92
|
+
- - ">="
|
|
93
93
|
- !ruby/object:Gem::Version
|
|
94
94
|
version: '0'
|
|
95
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
requirements:
|
|
97
|
-
- -
|
|
97
|
+
- - ">="
|
|
98
98
|
- !ruby/object:Gem::Version
|
|
99
99
|
version: '0'
|
|
100
100
|
requirements: []
|
|
101
101
|
rubyforge_project:
|
|
102
|
-
rubygems_version: 2.
|
|
102
|
+
rubygems_version: 2.2.2
|
|
103
103
|
signing_key:
|
|
104
104
|
specification_version: 4
|
|
105
105
|
summary: Wrapper to help add markdown syntax into textarea
|