Commit ae1c68f2d0aa014d79d19458283a4f8bf0ac9317
Committed by
Daniela Feitosa
1 parent
5e3082d6
Exists in
master
and in
29 other branches
Enabling tiny mce editor for Events
(ActionItem1868)
Showing
6 changed files
with
23 additions
and
1 deletions
Show diff stats
app/models/event.rb
app/views/cms/_event.rhtml
... | ... | @@ -15,5 +15,5 @@ |
15 | 15 | |
16 | 16 | <%= labelled_form_field(_('Address:'), text_field(:article, :address)) %> |
17 | 17 | |
18 | -<%= labelled_form_field(_('Information about the event:'), text_area(:article, :body, :cols => 64)) %> | |
18 | +<%= labelled_form_field(_('Information about the event:'), text_area(:article, :body, :cols => 64, :class => 'mceEditor')) %> | |
19 | 19 | ... | ... |
test/functional/cms_controller_test.rb
... | ... | @@ -1576,4 +1576,9 @@ class CmsControllerTest < Test::Unit::TestCase |
1576 | 1576 | assert_redirected_to :action => 'view', :id => f |
1577 | 1577 | end |
1578 | 1578 | |
1579 | + should 'render TinyMce Editor for events' do | |
1580 | + get :new, :profile => @profile.identifier, :type => 'Event' | |
1581 | + assert_tag :tag => 'textarea', :attributes => { :class => 'mceEditor' } | |
1582 | + end | |
1583 | + | |
1579 | 1584 | end | ... | ... |
test/unit/article_test.rb
test/unit/event_test.rb
test/unit/tiny_mce_article_test.rb
... | ... | @@ -236,4 +236,9 @@ class TinyMceArticleTest < Test::Unit::TestCase |
236 | 236 | assert_equal false, a.advertise? |
237 | 237 | assert_equal false, a.is_trackable? |
238 | 238 | end |
239 | + | |
240 | + should 'tiny mce editor is enabled' do | |
241 | + assert TinyMceArticle.new.tiny_mce? | |
242 | + end | |
243 | + | |
239 | 244 | end | ... | ... |