promethee 1.2.30 → 1.2.31

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: db6271056d5aa1ca0f010352a09c83587106d04d
4
- data.tar.gz: af29fbbf791dfd625237081a24b0842f1246bf1a
3
+ metadata.gz: c9a70ffb1f45b6678af9d367859340a1309668ea
4
+ data.tar.gz: cfc2d052e35851ced703473ee919d59a282d174b
5
5
  SHA512:
6
- metadata.gz: 8d30bd5ea1238f304f624d8214f6d0d43dc4dbe879c6822f910b38d2ec1cd85a148ca8486a75c201b48b719206e419d4838c8bcec5361092fd3ad0725a73ed4e
7
- data.tar.gz: 3fad4445fdf5a2f092c39f65a5efb1db3d1532ba270f9521de8673773a81bbf7187e6b0e82bb7ec7c232f064aa3ef2ee4a75ba223ac84954b5c665e26de70bd0
6
+ metadata.gz: 9022e31d0450b34e060912409f4519654f2cb269a9873c6c0c3cf679c0265afb9d0ad4cfc569200dadde7c21a047b4bfafe36871b3c92e3e6afa999c77e2394e
7
+ data.tar.gz: 36da951c3fa84f269ee671509fb01aa3c2bb959c2c7f819dc1cf2501d49ba9efddf4e23827b4445c965dea4738d73628f7a44cc6df030b5b28123616cbf42076
@@ -4,11 +4,12 @@
4
4
  callbacks: {
5
5
  onPaste: function(event) {
6
6
  // Remove text styles on paste
7
- var bufferText = ((event.originalEvent || event).clipboardData || window.clipboardData).getData('Text').trim();
7
+ var paragraph = document.createElement('p');
8
+ paragraph.textContent = ((event.originalEvent || event).clipboardData || window.clipboardData).getData('Text').trim();
8
9
  event.preventDefault();
10
+
9
11
  setTimeout(function() {
10
- document.execCommand('insertParagraph', false);
11
- document.execCommand('insertText', false, bufferText);
12
+ document.execCommand('insertNode', false, paragraph);
12
13
  }, 10);
13
14
  }
14
15
  },
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.2.30'
3
+ VERSION = '1.2.31'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promethee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.30
4
+ version: 1.2.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Dargelos