wmd-rails 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -27,14 +27,15 @@ Then `bundle install`
27
27
  In app/assets/javascripts/editor.js or other js
28
28
 
29
29
  ```javascript
30
- //= require wmd
31
- //= require showdown
30
+ //= require wmd/wmd
31
+ //= require wmd/showdown
32
32
 
33
33
  $(function(){
34
34
  new WMDEditor({
35
35
  input: "editor-input",
36
36
  button_bar: "editor-button-bar",
37
- preview: "editor-preview"
37
+ preview: "editor-preview",
38
+ helpLink: "http://daringfireball.net/projects/markdown/syntax"
38
39
  });
39
40
  })
40
41
  ```
@@ -45,7 +46,7 @@ In app/assets/stylesheets/editor.css or other css
45
46
 
46
47
  ```css
47
48
  /*
48
- *= require 'wmd'
49
+ *= require 'wmd/wmd'
49
50
  */
50
51
  ```
51
52
 
@@ -54,7 +55,7 @@ In app/assets/stylesheets/editor.css or other css
54
55
  In config/application.rb
55
56
 
56
57
  ```ruby
57
- config.assets.precompile += %w(wmd-buttons.png editor.js editor.css)
58
+ config.assets.precompile += %w(editor.js editor.css)
58
59
  ```
59
60
 
60
61
  Then `rake assets:precompile`
@@ -1,5 +1,5 @@
1
1
  module WMD
2
2
  module Rails
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.7'
4
4
  end
5
5
  end
@@ -2312,4 +2312,4 @@
2312
2312
 
2313
2313
  function setup_wmd(options) {
2314
2314
  return new WMDEditor(options);
2315
- }
2315
+ }
@@ -1,88 +1,88 @@
1
1
 
2
2
  .wmd-panel
3
3
  {
4
- margin-left: 25%;
5
- margin-right: 25%;
6
- width: 50%;
7
- min-width: 500px;
4
+ margin-left: 25%;
5
+ margin-right: 25%;
6
+ width: 50%;
7
+ min-width: 500px;
8
8
  }
9
9
 
10
10
  #wmd-editor
11
11
  {
12
- background-color: Aquamarine;
12
+ background-color: Aquamarine;
13
13
  }
14
14
 
15
15
  .wmd-button-bar
16
16
  {
17
- width: 100%;
18
- /*
19
- background-color: Silver;
20
- */
17
+ width: 100%;
18
+ /*
19
+ background-color: Silver;
20
+ */
21
21
  }
22
22
 
23
23
  .wmd-input
24
24
  {
25
- height: 500px;
26
- width: 100%;
27
- background-color: Gainsboro;
28
- border: 1px solid DarkGray;
25
+ height: 500px;
26
+ width: 100%;
27
+ background-color: Gainsboro;
28
+ border: 1px solid DarkGray;
29
29
  }
30
30
 
31
31
  .wmd-preview
32
32
  {
33
- background-color: LightGray;
33
+ background-color: LightGray;
34
34
  }
35
35
 
36
36
  .wmd-output
37
37
  {
38
- background-color: Pink;
38
+ background-color: Pink;
39
39
  }
40
40
 
41
41
  .wmd-button-row
42
42
  {
43
- position: relative;
44
- margin:0px;
45
- padding: 5px;
46
- height: 20px;
43
+ position: relative;
44
+ margin:0px;
45
+ padding: 5px;
46
+ height: 20px;
47
47
  }
48
48
 
49
49
  .wmd-spacer
50
50
  {
51
- width: 1px;
52
- height: 20px;
53
- margin-left: 7px;
54
- margin-right:7px;
55
-
56
- position: relative;
57
- background-color: Silver;
58
- display: inline-block; zoom:1; *display:inline;
59
- list-style: none;
51
+ width: 1px;
52
+ height: 20px;
53
+ margin-left: 7px;
54
+ margin-right:7px;
55
+
56
+ position: relative;
57
+ background-color: Silver;
58
+ display: inline-block; zoom:1; *display:inline;
59
+ list-style: none;
60
60
  }
61
61
 
62
62
  .wmd-button
63
63
  {
64
- width: 20px;
65
- height: 20px;
66
- margin-left: 5px;
67
- margin-right: 5px;
68
-
69
- position: relative;
70
- background-image: url(<%= asset_path 'wmd-buttons.png' %>);
71
- background-repeat: no-repeat;
72
- background-position: 0px 0px;
73
- display: inline-block; zoom:1; *display:inline;
74
- list-style: none;
64
+ width: 20px;
65
+ height: 20px;
66
+ margin-left: 5px;
67
+ margin-right: 5px;
68
+
69
+ position: relative;
70
+ background-image: url(<%= asset_path 'wmd/wmd-buttons.png' %>);
71
+ background-repeat: no-repeat;
72
+ background-position: 0px 0px;
73
+ display: inline-block; zoom:1; *display:inline;
74
+ list-style: none;
75
75
  }
76
76
 
77
77
  .wmd-button > a
78
78
  {
79
- width: 20px;
80
- height: 20px;
81
- margin-left: 5px;
82
- margin-right: 5px;
83
-
84
- position: absolute;
85
- display: inline-block;
79
+ width: 20px;
80
+ height: 20px;
81
+ margin-left: 5px;
82
+ margin-right: 5px;
83
+
84
+ position: absolute;
85
+ display: inline-block;
86
86
  }
87
87
 
88
88
 
@@ -144,32 +144,32 @@
144
144
 
145
145
  .wmd-prompt-background
146
146
  {
147
- background-color: Black;
147
+ background-color: Black;
148
148
  }
149
149
 
150
150
  .wmd-prompt-dialog
151
151
  {
152
- border: 1px solid #999999;
153
- background-color: #F5F5F5;
154
- font-size: 0.8em;
155
- font-family: arial, helvetica, sans-serif;
152
+ border: 1px solid #999999;
153
+ background-color: #F5F5F5;
154
+ font-size: 0.8em;
155
+ font-family: arial, helvetica, sans-serif;
156
156
  }
157
157
 
158
158
  .wmd-prompt-dialog > form > label {
159
- font-size: 0.6em;
160
- font-weight:bold;
161
- margin:4px 0;
159
+ font-size: 0.6em;
160
+ font-weight:bold;
161
+ margin:4px 0;
162
162
  }
163
163
 
164
164
 
165
165
  .wmd-prompt-dialog > form > input[type="text"] {
166
- border: 1px solid #999999;
167
- color: black;
166
+ border: 1px solid #999999;
167
+ color: black;
168
168
  }
169
169
 
170
170
  .wmd-prompt-dialog > form > input[type="button"]{
171
- border: 1px solid #888888;
172
- font-family: trebuchet MS, helvetica, sans-serif;
173
- font-size: 0.8em;
174
- font-weight: bold;
171
+ border: 1px solid #888888;
172
+ font-family: trebuchet MS, helvetica, sans-serif;
173
+ font-size: 0.8em;
174
+ font-weight: bold;
175
175
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wmd-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-18 00:00:00.000000000 Z
12
+ date: 2012-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &79378710 !ruby/object:Gem::Requirement
16
+ requirement: &80661830 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 3.1.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *79378710
24
+ version_requirements: *80661830
25
25
  description: WMDEditor for rails 3.1 or higher
26
26
  email:
27
27
  - chloerei@gmail.com
@@ -36,10 +36,10 @@ files:
36
36
  - lib/wmd-rails.rb
37
37
  - lib/wmd/rails/engine.rb
38
38
  - lib/wmd/version.rb
39
- - vendor/assets/images/wmd-buttons.png
40
- - vendor/assets/javascripts/showdown.js
41
- - vendor/assets/javascripts/wmd.js
42
- - vendor/assets/stylesheets/wmd.css.erb
39
+ - vendor/assets/images/wmd/wmd-buttons.png
40
+ - vendor/assets/javascripts/wmd/showdown.js
41
+ - vendor/assets/javascripts/wmd/wmd.js
42
+ - vendor/assets/stylesheets/wmd/wmd.css.erb
43
43
  - wmd-rails.gemspec
44
44
  homepage: https://github.com/chloerei/wmd-rails
45
45
  licenses: []