Skip to content

Commit

Permalink
Adding Charity WYSIWYG
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Graham committed May 31, 2010
1 parent 4a383f2 commit 5e9b349
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/charities/show.html.erb
Expand Up @@ -6,7 +6,7 @@
<br />
<div class="float_left"><%= image_tag @charity.photo.url %></div>
<br />
<p><%= @charity.description %></p>
<p><%=raw @charity.description %></p>
<br />
<% if current_user.try(:role) == 'admin' %>
<p>
Expand Down
10 changes: 9 additions & 1 deletion public/javascripts/application.js
Expand Up @@ -21,6 +21,14 @@ $(function() {
superscript : { visible : false },
insertImage : { visible : false }
}
});
});

$("#charity_description").wysiwyg({
controls: {
subscript : { visible : false },
superscript : { visible : false },
insertImage : { visible : false }
}
});

});

0 comments on commit 5e9b349

Please sign in to comment.