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 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.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.parent().is("p") && item.parent().children().length == 1) {
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
 
@@ -8,6 +8,7 @@
8
8
  +border_radius(2px)
9
9
  +box_shadow(rgba(0, 0, 0, 0.5), 0, 1px, 3px)
10
10
  +text-shadow(transparent, 0, 0)
11
+ +inline_block
11
12
 
12
13
  &.block
13
14
  display: block
@@ -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 || :span
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rich_cms}
8
- s.version = "2.0.0"
8
+ s.version = "2.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Engel"]
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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 0
10
- version: 2.0.0
9
+ - 1
10
+ version: 2.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Engel