rich_cms 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +12 -0
- data/README.textile +11 -4
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/assets/images/cleditor/buttons.gif +0 -0
- data/lib/assets/images/cleditor/toolbar.gif +0 -0
- data/lib/assets/jzip/jquery/cleditor.js +1132 -0
- data/lib/assets/jzip/jquery/raccoon_tip.js +5 -5
- data/lib/assets/jzip/rich/cms/editor.js +43 -12
- data/lib/assets/jzip/rich_cms.jz +1 -0
- data/lib/assets/sass/rich_cms/_panel.sass +7 -0
- data/lib/rich/cms/content/item.rb +2 -0
- data/lib/rich/cms/engine.rb +13 -0
- data/lib/rich_cms.rb +5 -2
- data/rich_cms.gemspec +11 -8
- metadata +18 -15
data/CHANGELOG
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
= Rich-CMS CHANGELOG
|
2
2
|
|
3
|
+
== Version 2.0.7 (October 20, 2010)
|
4
|
+
|
5
|
+
* Being able to edit content with the WYSIWYG HTML editor: CLEditor v1.3.0 (yay!)
|
6
|
+
* Added the :as option when rendering CMS content tags (available options are :string, :text and :html)
|
7
|
+
* Using RaccoonTip v1.0.8
|
8
|
+
* Copying image assets to public/images/rich/cms
|
9
|
+
* Finetuned the label of the edit CMS content form
|
10
|
+
* Added some manual source file requirements
|
11
|
+
* Tweaked Cleditor assets
|
12
|
+
* Telling SeatHolder not to react on focus events when marking CMS content
|
13
|
+
* Changed the formtastic gem dependency to '1.0.1'
|
14
|
+
|
3
15
|
== Version 2.0.6 (October 8, 2010)
|
4
16
|
|
5
17
|
* Providing control after logging in or out as Rich-CMS admin
|
data/README.textile
CHANGED
@@ -48,7 +48,7 @@ Run the following in your console:
|
|
48
48
|
script/generate rich_authlogic_user
|
49
49
|
</pre>
|
50
50
|
|
51
|
-
*Note*: At default, it will create both the @User@ and @
|
51
|
+
*Note*: At default, it will create both the @User@ and @UserSession@ classes and @CreateUsers@ migration. You can alter the class names with the following:
|
52
52
|
|
53
53
|
<pre>
|
54
54
|
script/generate rich_authlogic_user CodeHeroes::User --migrate
|
@@ -94,7 +94,7 @@ The following specifications are optional as Rich-Cms uses defaults:
|
|
94
94
|
|
95
95
|
* @:key@ (default: @:key@) - The key used for identification of content. You can also provide an array for a combined key (e.g. @[:key, :locale]@)
|
96
96
|
* @:value@ (default: @:value@) - The attribute which stores the value of the content instance.
|
97
|
-
* @:tag@ (default: @:
|
97
|
+
* @:tag@ (default: @:div@) - The HTML tag used for content items.
|
98
98
|
* @:add@ (default: @[]@) - An array of the content item attributes included within the HTML attributes.
|
99
99
|
* @:before_edit@ (default: @nil@) - Javascript function called before showing the edit form of a content item.
|
100
100
|
* @:after_update@ (default: @Rich.Cms.Editor.afterUpdate@) - Javascript function called after update a content item.
|
@@ -137,11 +137,15 @@ When using a combined key for content identification, just call it as follows:
|
|
137
137
|
|
138
138
|
*Note*: In this case, the content was registered with @Rich::Cms::Engine.register(".cms_content", {:class_name => "Cms::StaticContent", :key => [:key, :locale]})@
|
139
139
|
|
140
|
-
We have also provided you a helper method to render Rich-CMS content tags:
|
140
|
+
We have also provided you a helper method to render Rich-CMS content tags. It is provided with several options:
|
141
|
+
|
142
|
+
* @:as@ (default: auto-detect @:string@ or @:text@) - Specify the input type shown in the edit form (@:string@ for an input text, @:text@ for a textarea and @:html@ for a WYSIWYG HTML editor).
|
143
|
+
* @:tag@ (default: @:div@) - The HTML tag used for content items.
|
144
|
+
* @:html@ (default: @{}@) - HTML attributes added to the content tag (e.g. @:id@, @:class@)
|
141
145
|
|
142
146
|
<pre>
|
143
147
|
...
|
144
|
-
<%= rich_cms_tag ".cms_content", "test_content" %>
|
148
|
+
<%= rich_cms_tag ".cms_content", "test_content", :as => :html %>
|
145
149
|
<%= rich_cms_tag ".cms_content", {:key => "test_content", :locale => I18n.locale} %>
|
146
150
|
...
|
147
151
|
</pre>
|
@@ -210,6 +214,9 @@ SeatHolder<br>
|
|
210
214
|
"http://codehero.es/jquery_libraries/seat_holder":http://codehero.es/jquery_libraries/seat_holder <br>
|
211
215
|
"http://github.com/archan937/seat_holder":http://github.com/archan937/seat_holder
|
212
216
|
|
217
|
+
CLEditor<br>
|
218
|
+
"http://premiumsoftware.net/cleditor/index.html":http://premiumsoftware.net/cleditor/index.html
|
219
|
+
|
213
220
|
h2. ToDo's
|
214
221
|
|
215
222
|
* Provide better conventions for content rendering
|
data/Rakefile
CHANGED
@@ -13,9 +13,9 @@ begin
|
|
13
13
|
gemspec.author = "Paul Engel"
|
14
14
|
|
15
15
|
gemspec.add_dependency "authlogic"
|
16
|
-
gemspec.add_dependency "
|
16
|
+
gemspec.add_dependency "formtastic", "1.0.1"
|
17
17
|
gemspec.add_dependency "haml" , ">= 3"
|
18
|
-
gemspec.add_dependency "
|
18
|
+
gemspec.add_dependency "jzip" , ">= 1.0.10"
|
19
19
|
end
|
20
20
|
Jeweler::GemcutterTasks.new
|
21
21
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.7
|
Binary file
|
Binary file
|