scrivito_advanced_editors 0.0.1 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/scrivito_advanced_editors/scrivito_list_editor.js +3 -3
- data/app/assets/stylesheets/scrivito_advanced_editors/jquery.tag-editor.css +6 -5
- data/app/assets/stylesheets/scrivito_advanced_editors/scrivito_dialog.css +25 -0
- data/app/assets/stylesheets/scrivito_advanced_editors/scrivito_tabs.css +0 -4
- data/app/helpers/scrivito_advanced_editors/scrivito_advanced_tag_helper.rb +1 -0
- data/lib/scrivito_advanced_editors/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e773627e1f3b30dbffb3b5304541d57be6d52365
|
4
|
+
data.tar.gz: 3e31578e0dff23360f4649b0145181d595141df6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb92d2b9bb8b939372cda167599d11ed578a918aeb6b8f36abd213e0cab89503b22218aa148f9763b7877340c80e46cc1050a904e90ecd1be63b270d0aead906
|
7
|
+
data.tar.gz: 2674ac83b701208f206d9dd89eb3c348cb1d22936ac0a940b00bbfcb9632f8f867ccdd778c4a1e44ecd1dfe1e76610fe8444b692b4127a01182243fd8beaa09f
|
@@ -11,8 +11,9 @@
|
|
11
11
|
initFunction: function() { },
|
12
12
|
|
13
13
|
// set function triggert on click
|
14
|
-
clickFunction: function(scrivito_tag, text) {
|
15
|
-
|
14
|
+
clickFunction: function(scrivito_tag, text, delimiter) {
|
15
|
+
var delimiter = $(scrivito_tag).data('delimiter') || '|';
|
16
|
+
return scrivito_tag.scrivito('save', text.join(delimiter));
|
16
17
|
},
|
17
18
|
};
|
18
19
|
|
@@ -20,7 +21,6 @@
|
|
20
21
|
scrivito.on('content', function() {
|
21
22
|
if(scrivito.in_editable_view()) {
|
22
23
|
var elems = $(ScrivitoListEditor.selector);
|
23
|
-
|
24
24
|
$.each(elems, function(index, elem) {
|
25
25
|
var delimiter = $(elem).data('delimiter') || '|';
|
26
26
|
$(elem).tagEditor({
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/* surrounding tag container */
|
3
3
|
.tag-editor {
|
4
4
|
list-style-type: none;
|
5
|
-
padding: 0
|
5
|
+
padding: 5px 0;
|
6
6
|
margin: 0 3px 3px;
|
7
7
|
overflow: hidden;
|
8
8
|
cursor: text;
|
@@ -31,8 +31,8 @@
|
|
31
31
|
/* tag style */
|
32
32
|
.tag-editor .tag-editor-tag {
|
33
33
|
padding: 3px 5px;
|
34
|
-
color: #
|
35
|
-
background: #
|
34
|
+
color: #fff;
|
35
|
+
background: #439439;
|
36
36
|
white-space: nowrap;
|
37
37
|
overflow: hidden;
|
38
38
|
cursor: pointer;
|
@@ -41,7 +41,8 @@
|
|
41
41
|
|
42
42
|
/* delete icon */
|
43
43
|
.tag-editor .tag-editor-delete {
|
44
|
-
background: #
|
44
|
+
background: #439439;
|
45
|
+
color: #fff;
|
45
46
|
cursor: pointer;
|
46
47
|
padding: 3px 0;
|
47
48
|
border-radius: 0 2px 2px 0; }
|
@@ -61,7 +62,7 @@
|
|
61
62
|
.tag-editor .tag-editor-tag.active+.tag-editor-delete,
|
62
63
|
.tag-editor .tag-editor-tag.active+.tag-editor-delete i { background: none; cursor: text; }
|
63
64
|
|
64
|
-
.tag-editor .tag-editor-tag.active { background:
|
65
|
+
.tag-editor .tag-editor-tag.active { background: #eee; color: #000; }
|
65
66
|
|
66
67
|
/* jQuery UI autocomplete - code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css */
|
67
68
|
.ui-autocomplete { position: absolute; top: 0; left: 0; cursor: default; font-size: 14px; }
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.details-view h4 {
|
2
|
+
margin: 20px 0 0;
|
3
|
+
padding: 0;
|
4
|
+
font-size: 18px;
|
5
|
+
line-height: 22px;
|
6
|
+
color: #439439;
|
7
|
+
font-weight: bold;
|
8
|
+
}
|
9
|
+
|
10
|
+
.details-view h4:first-child {
|
11
|
+
margin-top: 0;
|
12
|
+
}
|
13
|
+
|
14
|
+
.details-view h5 {
|
15
|
+
margin: 20px 0 0;
|
16
|
+
padding: 0;
|
17
|
+
font-size: 14px;
|
18
|
+
line-height: 19px;
|
19
|
+
color: #439439;
|
20
|
+
font-weight: bold;
|
21
|
+
}
|
22
|
+
|
23
|
+
.details-view h5:first-child {
|
24
|
+
margin-top: 0;
|
25
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_advanced_editors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- app/assets/javascripts/scrivito_advanced_editors/scrivito_tabs.js
|
83
83
|
- app/assets/javascripts/scrivito_advanced_editors/scrivito_toggle_button.js
|
84
84
|
- app/assets/stylesheets/scrivito_advanced_editors/jquery.tag-editor.css
|
85
|
+
- app/assets/stylesheets/scrivito_advanced_editors/scrivito_dialog.css
|
85
86
|
- app/assets/stylesheets/scrivito_advanced_editors/scrivito_tabs.css
|
86
87
|
- app/assets/stylesheets/scrivito_advanced_editors/scrivito_toggle_button.css
|
87
88
|
- app/assets/stylesheets/scrivito_advanced_editors/styles.css
|