Store the processed html from the markdown text body field

This commit is contained in:
Amaia Castro
2016-12-13 17:01:50 +01:00
parent c69f1b3e83
commit 400b510b71
6 changed files with 44 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ App.MarkdownEditor =
textarea_content = element.find('textarea').val()
result = md.render(textarea_content)
element.find('#markdown-preview').html(result)
element.find('#markdown-result input').val(result)
initialize: ->
$('.markdown-editor').each ->