promethee 1.2.25 → 1.2.26

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: 1fc3877dac63fcc5f8b70426030e54e238e0d743
4
- data.tar.gz: 871d333c20e4807d872a1b360391f19f0b8bcf72
3
+ metadata.gz: a1dd931e2b119dc61f300c7f30f8ca5019b05662
4
+ data.tar.gz: 111d21b226416d41c7b3067f49f7dfc0c0bebba0
5
5
  SHA512:
6
- metadata.gz: 606bb28c4f59c698d497de63ddceab6433a707493f94a308245cb529fe0eb14fdfdf63f874ed9519471471e9008b76b5804d9e1dd0f131aead4710b5bc5400b6
7
- data.tar.gz: 3babbca85af4c66c6cee5fef91a1e0a2e1c6dd56aed07b2f932f244d5ede0c537ff066a904b9f8d46234db8f670b242a02c0bf76c5cbe9602e53646f8a641bac
6
+ metadata.gz: c23f31129e213c1d833b095cf8f731a48c17583020f9742e6d05c2ea9acad4105351e736f4c09f0f34bf9d5ba87f79a26780e1082b148929d2d1158298e91eab
7
+ data.tar.gz: 2bd3946bb125f9247ed3a052341c3130e29ce0512ed25058392d95d1cbc990e38377254808d5bde2ee63208bdac40750792336ad316a4cee3aeb00edd24055a8
@@ -3,4 +3,26 @@
3
3
  <label class="label-control">Image Url</label>
4
4
  <input ng-model="promethee.inspected.attributes.src" class="form-control" type="text"/>
5
5
  </div>
6
+
7
+ <div class="form-group">
8
+ <label class="label-control">Body</label>
9
+ <summernote config="{
10
+ disableDragAndDrop: true,
11
+ callbacks: {
12
+ onPaste: function(event) {
13
+ var bufferText = ((event.originalEvent || event).clipboardData || window.clipboardData).getData('Text');
14
+ event.preventDefault();
15
+ setTimeout(function() {
16
+ document.execCommand('insertText', false, bufferText);
17
+ }, 10);
18
+ }
19
+ },
20
+ toolbar: [
21
+ ['headline', ['style']],
22
+ ['style', ['bold', 'italic']],
23
+ ['alignment', ['ul', 'ol', 'paragraph']],
24
+ ['code', ['codeview']]
25
+ ]
26
+ }" ng-model="promethee.inspected.attributes.body"></summernote>
27
+ </div>
6
28
  </script>
@@ -7,32 +7,17 @@
7
7
  <div class="promethee-edit__toolbar promethee-edit__toolbar--transparent">
8
8
  <ng-include src="'promethee/write/toolbar'"></ng-include>
9
9
  </div>
10
- <div ng-hide="editing"
11
- class=" promethee-edit__wrapper
10
+ <div class=" promethee-edit__wrapper
12
11
  promethee-edit__cover-content"
13
12
  ng-bind-html="component.attributes.body | htmlSafe"
14
- ng-click="edit()"
15
13
  style="background-image: url('{{component.attributes.src}}')">
16
14
  </div>
17
- <div ng-show="editing"
18
- class=" promethee-edit__wrapper
19
- promethee-edit__cover-content"
20
- style="background-image: url('{{component.attributes.src}}')">
21
- <summernote config="options" ng-model="component.attributes.body"></summernote>
22
- </div>
23
15
  </div>
24
16
  </div>
25
17
  </script>
26
18
 
27
19
  <script>
28
20
  promethee.controller('CoverController', ['$scope', function($scope) {
29
- $scope.options = {
30
- toolbar: [
31
- ['headline', ['style']],
32
- ['style', ['bold', 'italic']],
33
- ['alignment', ['ul', 'ol', 'paragraph']],
34
- ['code', ['codeview']]
35
- ]
36
- };
21
+
37
22
  }]);
38
23
  </script>
@@ -2,7 +2,27 @@
2
2
  <div class="row">
3
3
  <div class="col-md-6">
4
4
  <b>Local</b>
5
- <summernote config="options" ng-model="component.attributes.body"></summernote>
5
+ <summernote
6
+ config="{
7
+ disableDragAndDrop: true,
8
+ callbacks: {
9
+ onPaste: function(event) {
10
+ var bufferText = ((event.originalEvent || event).clipboardData || window.clipboardData).getData('Text');
11
+ event.preventDefault();
12
+ setTimeout(function() {
13
+ document.execCommand('insertText', false, bufferText);
14
+ }, 10);
15
+ }
16
+ },
17
+ toolbar: [
18
+ ['headline', ['style']],
19
+ ['style', ['bold', 'italic']],
20
+ ['alignment', ['ul', 'ol', 'paragraph']],
21
+ ['code', ['codeview']]
22
+ ]
23
+ }"
24
+ ng-model="component.attributes.body"
25
+ ></summernote>
6
26
  </div>
7
27
  <div class="col-md-6">
8
28
  <b>Master</b>
@@ -13,6 +13,15 @@
13
13
  <label class="label-control">Caption</label>
14
14
  <summernote config="{
15
15
  disableDragAndDrop: true,
16
+ callbacks: {
17
+ onPaste: function(event) {
18
+ var bufferText = ((event.originalEvent || event).clipboardData || window.clipboardData).getData('Text');
19
+ event.preventDefault();
20
+ setTimeout(function() {
21
+ document.execCommand('insertText', false, bufferText);
22
+ }, 10);
23
+ }
24
+ },
16
25
  toolbar: [
17
26
  ['headline', ['style']],
18
27
  ['style', ['bold', 'italic']],
@@ -20,13 +20,6 @@
20
20
 
21
21
  <script>
22
22
  promethee.controller('ImageController', ['$scope', function($scope) {
23
- $scope.options = {
24
- toolbar: [
25
- ['headline', ['style']],
26
- ['style', ['bold', 'italic']],
27
- ['alignment', ['ul', 'ol', 'paragraph']],
28
- ['code', ['codeview']]
29
- ]
30
- };
23
+
31
24
  }]);
32
25
  </script>
@@ -3,7 +3,27 @@
3
3
  <div class="col-md-6">
4
4
  <b>Local</b>
5
5
  <input ng-model="component.attributes.alt" type="text" class="form-control">
6
- <summernote config="options" ng-model="component.attributes.caption"></summernote>
6
+ <summernote
7
+ config="{
8
+ disableDragAndDrop: true,
9
+ callbacks: {
10
+ onPaste: function(event) {
11
+ var bufferText = ((event.originalEvent || event).clipboardData || window.clipboardData).getData('Text');
12
+ event.preventDefault();
13
+ setTimeout(function() {
14
+ document.execCommand('insertText', false, bufferText);
15
+ }, 10);
16
+ }
17
+ },
18
+ toolbar: [
19
+ ['headline', ['style']],
20
+ ['style', ['bold', 'italic']],
21
+ ['alignment', ['ul', 'ol', 'paragraph']],
22
+ ['code', ['codeview']]
23
+ ]
24
+ }"
25
+ ng-model="component.attributes.caption"
26
+ ></summernote>
7
27
  </div>
8
28
  <div class="col-md-6">
9
29
  <b>Master</b>
@@ -2,6 +2,15 @@
2
2
  <div class="form-group">
3
3
  <summernote config="{
4
4
  disableDragAndDrop: true,
5
+ callbacks: {
6
+ onPaste: function(event) {
7
+ var bufferText = ((event.originalEvent || event).clipboardData || window.clipboardData).getData('Text');
8
+ event.preventDefault();
9
+ setTimeout(function() {
10
+ document.execCommand('insertText', false, bufferText);
11
+ }, 10);
12
+ }
13
+ },
5
14
  toolbar: [
6
15
  ['headline', ['style']],
7
16
  ['style', ['bold', 'italic']],
@@ -15,13 +15,6 @@
15
15
 
16
16
  <script>
17
17
  promethee.controller('TextController', ['$scope', function($scope) {
18
- $scope.options = {
19
- toolbar: [
20
- ['headline', ['style']],
21
- ['style', ['bold', 'italic']],
22
- ['alignment', ['ul', 'ol', 'paragraph']],
23
- ['code', ['codeview']]
24
- ]
25
- };
18
+
26
19
  }]);
27
20
  </script>
@@ -2,7 +2,24 @@
2
2
  <div class="row">
3
3
  <div class="col-md-6">
4
4
  <b>Local</b>
5
- <summernote config="options" ng-model="component.attributes.body"></summernote>
5
+ <summernote config="{
6
+ disableDragAndDrop: true,
7
+ callbacks: {
8
+ onPaste: function(event) {
9
+ var bufferText = ((event.originalEvent || event).clipboardData || window.clipboardData).getData('Text');
10
+ event.preventDefault();
11
+ setTimeout(function() {
12
+ document.execCommand('insertText', false, bufferText);
13
+ }, 10);
14
+ }
15
+ },
16
+ toolbar: [
17
+ ['headline', ['style']],
18
+ ['style', ['bold', 'italic']],
19
+ ['alignment', ['ul', 'ol', 'paragraph']],
20
+ ['code', ['codeview']]
21
+ ]
22
+ }" ng-model="component.attributes.body"></summernote>
6
23
  </div>
7
24
  <div class="col-md-6">
8
25
  <b>Master</b>
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.2.25'
3
+ VERSION = '1.2.26'
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.25
4
+ version: 1.2.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Dargelos
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-02-08 00:00:00.000000000 Z
14
+ date: 2018-03-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails