app/helpers/alchemy/admin/contents_helper.rb in alchemy_cms-2.1.rc2 vs app/helpers/alchemy/admin/contents_helper.rb in alchemy_cms-2.1.rc3

- old
+ new

@@ -25,11 +25,11 @@ content_name = content.name_for_label end if content.description.blank? warning("Content #{content.name} is missing its description") title = t("Warning: Content is missing its description.", :contentname => content.name) - content_name = %(<span class="warning icon" title="#{title}"></span>&nbsp;) + content_name.html_safe + content_name = %(<span class="warning icon" title="#{title}"></span>&nbsp;#{content_name}).html_safe end content.has_validations? ? "#{content_name}<span class='validation_indicator'>*</span>".html_safe : content_name end # Renders a link to show the new content overlay @@ -66,9 +66,15 @@ :method => 'post', :remote => true, :id => "add_content_for_element_#{element.id}", :class => 'button new_content_link' ) + end + + # Returns a textarea ready to use with tinymce + def tinymce_tag(name, content = '', options = {}) + append_class_name(options, 'tinymce') + text_area_tag(name, content, options) end end end end