md_simple_editor 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77b5baabe168bd310f04669cca25d4de145da931
4
- data.tar.gz: 4d69c8f45eff59270b334a25342a78aefa8b0daf
3
+ metadata.gz: d37cf8d7bdc06a6065f8cba7cf86b27a932461ed
4
+ data.tar.gz: 1e985a2aa5403a43e519b3fb40dbf85771e8e51e
5
5
  SHA512:
6
- metadata.gz: 76c669d4ffd306386639fe2c2b9fcb573cce175fa5cf36aa693f11dbca1349b76f59695cbcef28fc60b1e8a94e507fac41681ff522f35c92573ea0ec23da02c9
7
- data.tar.gz: d57bf3e362bdadad6dc5ec1a0e79a1a51cc32bb072e7538bbed1a242db2fb65aada5d6f039b80a2fa8e68e84c720e27fc06f30fe800e5dcc1bdc21b3861c52c7
6
+ metadata.gz: 29d63ea2a90748c24457485b39f1d487162fdc773f5dab0336ce220c940c4c76ba080ce67279520ea49ff493aa44e3edaedcb8bcdbb66f06aab7599fda6ab75b
7
+ data.tar.gz: df638aa911cecb396a5c5932bb6b7697b9297f1b2178a8afc5bd21480547993133402c4e0023c592d550a233fb72605580bce3bbc070e535be675e6179ac4106
@@ -95,8 +95,10 @@ insertAtCaret = (areaId, text) ->
95
95
  txtarea.focus()
96
96
  txtarea.scrollTop = scrollPos
97
97
 
98
- $(document).on 'turbolinks:load page:load ready', ->
98
+ initializeEditor = ->
99
99
  md_simple_editor()
100
- $(document).off 'turbolinks:load page:load ready'
100
+ $(document).off 'turbolinks:load page:load ready', initializeEditor
101
101
  $('.preview_md').click ->
102
102
  preview()
103
+
104
+ $(document).on 'turbolinks:load page:load ready', initializeEditor
@@ -1,3 +1,3 @@
1
1
  module MdSimpleEditor
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: md_simple_editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Espinosa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-10 00:00:00.000000000 Z
11
+ date: 2017-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  requirements: []
119
119
  rubyforge_project:
120
- rubygems_version: 2.6.6
120
+ rubygems_version: 2.6.10
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: Simple editor for markdown and rails