bernat/best_in_place — Issue #88: formatting not displaying on update
Author: fiatlux
Created: 2012-01-18 09:17:49+00:00
State: open

I have redcarpet with best_in_place. The field is updated, but on tabbing out of the field, the textarea does not show the formatting via redcarpet unless the page is refreshed. Also, though i have the buttons enabled, they are not showing up.

<%= best_in_place @homepage, :about_us, :display_as=>:markdown_about_us, :type=>:textarea, :ok_button=>"Save"%>

def markdown_about_us
redcarpet = Redcarpet::Markdown.new(Redcarpet::Render::HTML,:space_after_headers => true,
:fenced_code_blocks => true, :autolink => true, :no_intra_emphasis => true,
:strikethrough => true, :superscripts => true)
redcarpet.render(self.about_us).html_safe
end