rich_cms 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -0
- data/VERSION +1 -1
- data/lib/assets/jzip/rich/cms/editor.js +2 -2
- data/lib/assets/sass/rich_cms/_content.sass +1 -0
- data/lib/assets/sass/rich_cms/_panel.sass +15 -1
- data/lib/rich/cms/content/item.rb +1 -1
- data/rich_cms.gemspec +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
= Rich-CMS CHANGELOG
|
2
2
|
|
3
|
+
== Version 2.0.1 (September 3, 2010)
|
4
|
+
|
5
|
+
* Tweaked determination of whether to show a text input or textarea when editing content
|
6
|
+
* Corrected clicked cms content item detection
|
7
|
+
* Updated styling of the Rich CMS panel
|
8
|
+
* Rendering Rich CMS content within a div tag at default instead of a span
|
9
|
+
|
3
10
|
== Version 2.0.0 (September 3, 2010)
|
4
11
|
|
5
12
|
* Updated the look and feel
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.1
|
@@ -35,7 +35,7 @@ Rich.Cms.Editor = (function() {
|
|
35
35
|
if (markedContentItems.length) {
|
36
36
|
$.each(markedContentItems, function() {
|
37
37
|
var item = $(this);
|
38
|
-
if (item.
|
38
|
+
if (item.find("p").length || item.html().length > 50) {
|
39
39
|
item.addClass("block");
|
40
40
|
}
|
41
41
|
});
|
@@ -47,7 +47,7 @@ Rich.Cms.Editor = (function() {
|
|
47
47
|
};
|
48
48
|
|
49
49
|
var edit = function() {
|
50
|
-
var content_item = $(this);
|
50
|
+
var content_item = $(this).closest(".rich_cms_content");
|
51
51
|
var label = $("#rich_cms_panel .edit form fieldset.inputs label");
|
52
52
|
var inputs = $("#rich_cms_panel .edit form fieldset.inputs");
|
53
53
|
|
@@ -1,9 +1,17 @@
|
|
1
1
|
|
2
2
|
#rich_cms_panel
|
3
|
-
width: 200px
|
3
|
+
min-width: 200px
|
4
4
|
padding-right: 5px
|
5
5
|
|
6
6
|
form
|
7
|
+
fieldset, ol
|
8
|
+
margin: 0
|
9
|
+
padding: 0
|
10
|
+
border: 0
|
11
|
+
|
12
|
+
ol
|
13
|
+
list-style: none
|
14
|
+
|
7
15
|
.inputs
|
8
16
|
label
|
9
17
|
font-size: 12px
|
@@ -16,6 +24,12 @@
|
|
16
24
|
input
|
17
25
|
width: 100%
|
18
26
|
+block
|
27
|
+
textarea
|
28
|
+
width: 450px
|
29
|
+
height: 300px
|
30
|
+
font:
|
31
|
+
family: "Arial"
|
32
|
+
size: 12px
|
19
33
|
|
20
34
|
.buttons
|
21
35
|
padding-top: 9px
|
@@ -45,7 +45,7 @@ module Rich
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def to_tag(options = {})
|
48
|
-
tag = options[:tag] || @group.tag || :
|
48
|
+
tag = options[:tag] || @group.tag || :div
|
49
49
|
attrs = []
|
50
50
|
|
51
51
|
default = @group.identifiers.size == 1 ? @object.send(@group.identifiers.first) : @object.attributes.values_at(*@group.identifiers).inspect
|
data/rich_cms.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rich_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 1
|
10
|
+
version: 2.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Paul Engel
|