8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'app/inputs/pagedown_text_input.rb', line 8
def to_html
input_wrapping do
label_html <<
template.content_tag(:div, :class => 'wmd-panel' ) do
template.content_tag(:div, "", :class => 'wmd-button-bar') <<
builder.text_area(method, input_html_options)
end <<
template.content_tag(:div, "", :style=> 'margin-top:20px' ) do
template.content_tag(:label, "Preview" ) <<
template.content_tag(:div, "", :class => "wmd-panel wmd-preview" )
end
end.html_safe
end
|