Skip to content

Commit

Permalink
#3 Fix image absolute url
Browse files Browse the repository at this point in the history
  • Loading branch information
marjinal1st committed Jan 20, 2014
1 parent db5ffd5 commit e429f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/kebapage/photos/photos.js.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<% @uploads.each do |photo| %>
document.wysi.data("wysihtml5").editor.composer.setValue($('#static_page_content').val() + "<img src='<%= photo.photo.url %>' />");
document.wysi.data("wysihtml5").editor.composer.setValue(document.wysi.val() + '<img src="<%= URI.join(request.url, photo.photo.url) %>" />');
<% end %>

0 comments on commit e429f08

Please sign in to comment.