promethee 1.6.0 → 1.6.1
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b05cc8c6b7258f424d9e44b4d7e3e667ee3eecef
|
4
|
+
data.tar.gz: a7c476562765d36ee451d5fce58476e2afd178a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 805ce80707522a75e4050398aa95ff4bf86bb6b0b1050f759bcfda15616f828880b4ef26a0fb43ed4f490592a3e3ceb776d8429f5119358c0ed1adfb65f4237d
|
7
|
+
data.tar.gz: c75fa0ef648d6fc07cf09cc3ba61cb1cee3a29e3f225fad19d6e4b93c354263e01c4a29f5bd6ec0e4fa56cf239d6efc1b3c0e7467cca152c4968ddb23c39b53e
|
data/README.md
CHANGED
@@ -164,6 +164,7 @@ With stylesheets set:
|
|
164
164
|
```
|
165
165
|
|
166
166
|
> These require/import statements are quite flexible: if you already use gems or packages which include bootstrap, jquery, summernote... you're likely to be able to use them in place of those included in Prométhée.
|
167
|
+
ATTENTION: If you use the Pace JS lib it must be required AFTER the promethee lib
|
167
168
|
|
168
169
|
#### The editor has components
|
169
170
|
|
@@ -58,14 +58,13 @@ promethee.controller('PrometheeController', ['$scope', 'summernoteConfig', 'pres
|
|
58
58
|
return;
|
59
59
|
}
|
60
60
|
|
61
|
-
|
62
61
|
if (store === undefined) {
|
63
62
|
store = component.attributes;
|
64
63
|
}
|
65
64
|
|
66
65
|
$scope.promethee.inspected = component;
|
67
66
|
Upload.upload({
|
68
|
-
url: '
|
67
|
+
url: '<%= promethee_active_storage_create_path %>',
|
69
68
|
data: { file: file },
|
70
69
|
headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }
|
71
70
|
}).then(function (resp) {
|
@@ -1,6 +1,7 @@
|
|
1
1
|
<script>
|
2
2
|
promethee.filter('textContentFromHTML', function() {
|
3
3
|
return function(val) {
|
4
|
+
if (val === undefined) return ''
|
4
5
|
// Inner text has a problem with some whitespace/linebreak missing (at least h1, h2...)
|
5
6
|
// We fix it by adding whitespaces before each closing tag.
|
6
7
|
var valWithSpaces = val.split('</').join(' </');
|
@@ -2,7 +2,7 @@ ActionDispatch::Routing::Mapper.class_eval do
|
|
2
2
|
def promethee path: :promethee
|
3
3
|
namespace :promethee, path: path.to_s, module: nil do
|
4
4
|
post 'preview' => 'promethee#preview', as: :preview
|
5
|
-
post 'blob' => 'promethee#blob_create'
|
5
|
+
post 'blob' => 'promethee#blob_create', as: :active_storage_create
|
6
6
|
get 'blob/:id' => 'promethee#blob_show'
|
7
7
|
end
|
8
8
|
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.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Dargelos
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2018-05-
|
16
|
+
date: 2018-05-29 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rails
|
@@ -358,7 +358,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
358
358
|
version: '0'
|
359
359
|
requirements: []
|
360
360
|
rubyforge_project:
|
361
|
-
rubygems_version: 2.
|
361
|
+
rubygems_version: 2.6.11
|
362
362
|
signing_key:
|
363
363
|
specification_version: 4
|
364
364
|
summary: Bring fire to your page
|