app/views/bhf/entries/form/column/_markdown.haml in bhf-0.4.2.3 vs app/views/bhf/entries/form/column/_markdown.haml in bhf-0.4.2.4
- old
+ new
@@ -1,21 +1,21 @@
--# TODO: markdown editor
+-# TODO: markdown lib that is not id based bullshit
= node f, field do
- if @quick_edit
= f.text_area field.name, class: 'markdown'
- else
- = javascript_include_tag 'bhf_includes/showdown.js'
+ = javascript_include_tag 'bhf/includes/showdown'
#wmd-editor.wmd-pane
#wmd-button-bar
= f.text_area field.name, id: 'wmd-input', class: 'markdown'
%h6.preview_switch
Preview
%span#toggle_html_preview HTML
%span#toggle_live_preview.active Live
#wmd-preview.wmd-panel
#wmd-output.wmd-panel.hide
- = javascript_include_tag 'bhf_includes/wmd.js'
+ = javascript_include_tag 'bhf/includes/wmd'
:javascript
var toggleMdPreview = function(e){
var htmlPreview = e.target.id === 'toggle_html_preview';
$('wmd-preview').toggleClass('hide', htmlPreview);
$('wmd-output').toggleClass('hide', !htmlPreview);
\ No newline at end of file