brightcontent-attachments 2.3.1 → 2.3.2

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: e5fdc34f41c4c7f4dcb884c3ea3f317707b8f882
4
- data.tar.gz: 4f6b6840592d60a6a4e1b8c3f610fa7d703615fb
3
+ metadata.gz: 7dd2092f43b154b20d9ea9254b8781286cca3277
4
+ data.tar.gz: e2fb081e29b03e2a080b31028cda01f3bec3f73f
5
5
  SHA512:
6
- metadata.gz: bf821102f7280df10d5f8a7eae57c26da07e42325408c7b80a907a61c4dfcf522ef6e5e67ceaf9efd23a47977cd6a31215bebd735e52ca200906a948e46c7158
7
- data.tar.gz: dbf29736c369161493fb37d5a60f719172ff294a4e738e02e618b4efe6d29a8027b8a46afa8f7408fa6804e86648f0b449828cdf6ea5c8d719ede4094cf22850
6
+ metadata.gz: a2a3fbb6179b0f66d6fcf5ac70e417044b411070a8460486b6bb0d7d4ee38334c2e08d85db5ab9db1b20a61f4277e52bc504b9e8a13123e6a20bb2e3f5c65b58
7
+ data.tar.gz: 44885e8c74ad6f764e94d7a9298276596a95db1fe75d56f779662dd05db181950f51b6a4663e54c230fa857edb0089c5e516a0864d8125fdc479cc363e230f08
@@ -3,7 +3,6 @@
3
3
 
4
4
  $ ->
5
5
  request_url = $("#attachable_url").val()
6
- editor = $("#insertable").data("wysihtml5").editor
7
6
 
8
7
  spinner = new Spinner().spin()
9
8
  $('#fileupload').fileupload
@@ -23,11 +22,13 @@ $ ->
23
22
 
24
23
  $("#attachments").on "click", ".insert-image", (e) ->
25
24
  e.preventDefault()
25
+ editor = $("#insertable").data("wysihtml5").editor
26
26
  editor.composer.commands.exec "insertImage",
27
27
  src: $(this).attr "href"
28
28
 
29
29
  $("#attachments").on "click", ".insert-link", (e) ->
30
30
  e.preventDefault()
31
+ editor = $("#insertable").data("wysihtml5").editor
31
32
  editor.composer.commands.exec "createLink",
32
33
  href: $(this).attr "href"
33
34
  target: "_blank"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcontent-attachments
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Developers at Brightin
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.3.1
19
+ version: 2.3.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.3.1
26
+ version: 2.3.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: paperclip
29
29
  requirement: !ruby/object:Gem::Requirement