simple_form_markdown_editor 0.0.2 → 0.0.3
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/Gemfile.lock +8 -8
- data/README.md +4 -4
- data/lib/assets/javascripts/simple_form_markdown_editor/simple_form_markdown_editor_buttons.js.coffee +1 -7
- data/lib/assets/javascripts/simple_form_markdown_editor/simple_form_markdown_editor_help.js.coffee +1 -7
- data/lib/assets/javascripts/simple_form_markdown_editor/simple_form_markdown_editor_tabs.js.coffee +1 -7
- data/lib/simple_form_markdown_editor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b03c19798f5c25ab432efde17d50c3d8959d782e
|
|
4
|
+
data.tar.gz: b0eee2af8b50d35f13265a6b3cb5734df53bf9d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd50158f19395babcbf5d78affc1ba073314fd4a5637bf58b81b055d42a8cede7897d858c35f254803f01c532fa23cb6ddff3e8763490963db7051ec6b0a558e
|
|
7
|
+
data.tar.gz: 8e99ebceef0edcf61232b46551cbba4b0403e427e9d2244975941c6d7918999c67e745611abbc9b4a7faba2723bfd2d50572ffc06f9d3ac091e08c5360e4b220
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
simple_form_markdown_editor (0.0.
|
|
4
|
+
simple_form_markdown_editor (0.0.3)
|
|
5
5
|
rails (>= 4.2)
|
|
6
6
|
redcarpet
|
|
7
7
|
simple_form (>= 3.0.2)
|
|
@@ -44,20 +44,20 @@ GEM
|
|
|
44
44
|
minitest (~> 5.1)
|
|
45
45
|
thread_safe (~> 0.3, >= 0.3.4)
|
|
46
46
|
tzinfo (~> 1.1)
|
|
47
|
-
arel (6.0.
|
|
47
|
+
arel (6.0.3)
|
|
48
48
|
builder (3.2.2)
|
|
49
49
|
erubis (2.7.0)
|
|
50
|
-
globalid (0.3.
|
|
50
|
+
globalid (0.3.6)
|
|
51
51
|
activesupport (>= 4.1.0)
|
|
52
52
|
i18n (0.7.0)
|
|
53
53
|
json (1.8.3)
|
|
54
|
-
loofah (2.0.
|
|
54
|
+
loofah (2.0.3)
|
|
55
55
|
nokogiri (>= 1.5.9)
|
|
56
56
|
mail (2.6.3)
|
|
57
57
|
mime-types (>= 1.16, < 3)
|
|
58
58
|
mime-types (2.6.1)
|
|
59
59
|
mini_portile (0.6.2)
|
|
60
|
-
minitest (5.
|
|
60
|
+
minitest (5.8.0)
|
|
61
61
|
nokogiri (1.6.6.2)
|
|
62
62
|
mini_portile (~> 0.6.0)
|
|
63
63
|
rack (1.6.4)
|
|
@@ -76,7 +76,7 @@ GEM
|
|
|
76
76
|
sprockets-rails
|
|
77
77
|
rails-deprecated_sanitizer (1.0.3)
|
|
78
78
|
activesupport (>= 4.2.0.alpha)
|
|
79
|
-
rails-dom-testing (1.0.
|
|
79
|
+
rails-dom-testing (1.0.7)
|
|
80
80
|
activesupport (>= 4.2.0.beta, < 5.0)
|
|
81
81
|
nokogiri (~> 1.6.0)
|
|
82
82
|
rails-deprecated_sanitizer (>= 1.0.1)
|
|
@@ -89,10 +89,10 @@ GEM
|
|
|
89
89
|
thor (>= 0.18.1, < 2.0)
|
|
90
90
|
rake (10.4.2)
|
|
91
91
|
redcarpet (3.3.2)
|
|
92
|
-
simple_form (3.1.
|
|
92
|
+
simple_form (3.1.1)
|
|
93
93
|
actionpack (~> 4.0)
|
|
94
94
|
activemodel (~> 4.0)
|
|
95
|
-
sprockets (3.
|
|
95
|
+
sprockets (3.3.4)
|
|
96
96
|
rack (~> 1.0)
|
|
97
97
|
sprockets-rails (2.3.2)
|
|
98
98
|
actionpack (>= 3.0)
|
data/README.md
CHANGED
|
@@ -47,7 +47,7 @@ Refer to [redcarpet](https://github.com/vmg/redcarpet) for a list of available [
|
|
|
47
47
|
```ruby
|
|
48
48
|
# config/initializers/simple_form_markdown_editor.rb
|
|
49
49
|
|
|
50
|
-
SimpleFormMarkdownEditor::
|
|
50
|
+
SimpleFormMarkdownEditor::MarkdownEditorInput.configure do |c|
|
|
51
51
|
c.buttons = [ %w(h1 h2 h3), %w(strong em), %w(a img) ]
|
|
52
52
|
c.help = { enabled: true, visible: false }
|
|
53
53
|
c.extensions = {
|
|
@@ -57,8 +57,8 @@ SimpleFormMarkdownEditor::MarkdownEditor.configure do |c|
|
|
|
57
57
|
escape_html: false
|
|
58
58
|
}
|
|
59
59
|
c.render_options = {
|
|
60
|
-
:
|
|
61
|
-
:
|
|
60
|
+
no_images: true,
|
|
61
|
+
no_links: true
|
|
62
62
|
}
|
|
63
63
|
end
|
|
64
64
|
```
|
|
@@ -108,4 +108,4 @@ The gem includes a rails app for easy testing, simply `cd test/dummy`, `bundle i
|
|
|
108
108
|
* Highlighting trailing spaces (for linebreaks)?
|
|
109
109
|
* Implement keyboard shortcuts
|
|
110
110
|
* Implement Ctrl+z
|
|
111
|
-
* Implement install task (create YML and config)?
|
|
111
|
+
* Implement install task (create YML and config)?
|
|
@@ -126,10 +126,4 @@ do ($ = jQuery, window, document) ->
|
|
|
126
126
|
|
|
127
127
|
# =====================================================================
|
|
128
128
|
|
|
129
|
-
$ ->
|
|
130
|
-
|
|
131
|
-
$('div.simple_form_markdown_editor').simple_form_markdown_editor_buttons()
|
|
132
|
-
|
|
133
|
-
# make sure the plugin is correctly rebound to new elements
|
|
134
|
-
$('body').on 'dom_update', (e) ->
|
|
135
|
-
$('div.simple_form_markdown_editor').simple_form_markdown_editor_buttons()
|
|
129
|
+
$ -> $('div.simple_form_markdown_editor').simple_form_markdown_editor_buttons()
|
data/lib/assets/javascripts/simple_form_markdown_editor/simple_form_markdown_editor_help.js.coffee
CHANGED
|
@@ -89,10 +89,4 @@ do ($ = jQuery, window, document) ->
|
|
|
89
89
|
|
|
90
90
|
# =====================================================================
|
|
91
91
|
|
|
92
|
-
$ ->
|
|
93
|
-
|
|
94
|
-
$('div.simple_form_markdown_editor').simple_form_markdown_editor_help()
|
|
95
|
-
|
|
96
|
-
# make sure the plugin is correctly rebound to new elements
|
|
97
|
-
$('body').on 'dom_update', (e) ->
|
|
98
|
-
$('div.simple_form_markdown_editor').simple_form_markdown_editor_help()
|
|
92
|
+
$ -> $('div.simple_form_markdown_editor').simple_form_markdown_editor_help()
|
data/lib/assets/javascripts/simple_form_markdown_editor/simple_form_markdown_editor_tabs.js.coffee
CHANGED
|
@@ -77,10 +77,4 @@ do ($ = jQuery, window, document) ->
|
|
|
77
77
|
|
|
78
78
|
# =====================================================================
|
|
79
79
|
|
|
80
|
-
$ ->
|
|
81
|
-
|
|
82
|
-
$('div.simple_form_markdown_editor').simple_form_markdown_editor_tabs()
|
|
83
|
-
|
|
84
|
-
# make sure the plugin is correctly rebound to new elements
|
|
85
|
-
$('body').on 'dom_update', (e) ->
|
|
86
|
-
$('div.simple_form_markdown_editor').simple_form_markdown_editor_tabs()
|
|
80
|
+
$ -> $('div.simple_form_markdown_editor').simple_form_markdown_editor_tabs()
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simple_form_markdown_editor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tomáš Celizna
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-
|
|
12
|
+
date: 2015-09-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|