diff --git a/app/views/admin_panel/site_info.rhtml b/app/views/admin_panel/site_info.rhtml index e66f5cc..ba10edf 100644 --- a/app/views/admin_panel/site_info.rhtml +++ b/app/views/admin_panel/site_info.rhtml @@ -8,7 +8,7 @@ <%= labelled_form_field(_('Site name'), text_field(:environment, :name)) %> - <%= labelled_form_field _('Homepage content'), text_area(:environment, :description, :cols => 40, :style => 'width: 90%') %> + <%= labelled_form_field _('Homepage content'), text_area(:environment, :description, :cols => 40, :style => 'width: 90%', :class => 'mceEditor') %> <% button_bar do %> <%= submit_button(:save, _('Save')) %> diff --git a/app/views/manage_products/_edit_description.rhtml b/app/views/manage_products/_edit_description.rhtml index 5afb20b..c64ce92 100644 --- a/app/views/manage_products/_edit_description.rhtml +++ b/app/views/manage_products/_edit_description.rhtml @@ -6,7 +6,7 @@ :url => {:controller => 'manage_products', :action => 'edit', :id => @product, :field => 'description'}, :html => {:id => 'product-description-form', :method => 'post'}) do |f| %> - <%= labelled_form_field(_('Description:'), f.text_area(:description, :rows => 15, :style => 'width: 90%;')) %> + <%= labelled_form_field(_('Description:'), f.text_area(:description, :rows => 15, :style => 'width: 90%;', :class => 'mceEditor')) %> <% button_bar do %> <%= submit_button :save, _('Save') %> <%= cancel_edit_product_link(@product, 'description') %> diff --git a/app/views/manage_products/_form.rhtml b/app/views/manage_products/_form.rhtml index 7d1147e..211aec4 100644 --- a/app/views/manage_products/_form.rhtml +++ b/app/views/manage_products/_form.rhtml @@ -5,7 +5,7 @@ <%= display_form_field( _('Name:'), f.text_field(:name) ) %> <%= display_form_field( _('Price:'), f.text_field(:price) ) %> - <%= display_form_field( _('Description:'), f.text_area(:description, :rows => 10) ) %> + <%= display_form_field( _('Description:'), f.text_area(:description, :rows => 10, :class => 'mceEditor') ) %> <%= labelled_form_field(f.check_box(:highlighted) + _('Highlight this product'),'') %> <% f.fields_for :image_builder, @product.image do |i| %> <%= file_field_or_thumbnail(_('Image:'), @product.image, i) %> diff --git a/app/views/profile_members/send_mail.rhtml b/app/views/profile_members/send_mail.rhtml index 63deffa..48a3ef6 100644 --- a/app/views/profile_members/send_mail.rhtml +++ b/app/views/profile_members/send_mail.rhtml @@ -8,7 +8,7 @@ <% form_for :mailing, :url => {:action => 'send_mail'}, :html => {:id => 'mailing-form'} do |f| %> <%= labelled_form_field(_('Subject:'), f.text_field(:subject)) %> - <%= labelled_form_field(_('Body:'), f.text_area(:body)) %> + <%= labelled_form_field(_('Body:'), f.text_area(:body, :class => 'mceEditor')) %> <%= submit_button(:send, _('Send')) %> <%= button :cancel, _('Cancel e-mail'), :action => 'index' %> <% end %> diff --git a/app/views/users/send_mail.rhtml b/app/views/users/send_mail.rhtml index 180109c..f6033b1 100644 --- a/app/views/users/send_mail.rhtml +++ b/app/views/users/send_mail.rhtml @@ -6,7 +6,7 @@ <% form_for :mailing, :url => {:action => 'send_mail'} do |f| %> <%= labelled_form_field(_('Subject:'), f.text_field(:subject)) %> - <%= labelled_form_field(_('Body:'), f.text_area(:body)) %> + <%= labelled_form_field(_('Body:'), f.text_area(:body, :class => 'mceEditor')) %> <%= submit_button(:send, _('Send')) %> <%= button :cancel, _('Cancel e-mail'), :controller => 'users' %> <% end %> -- libgit2 0.21.2