Skip to content

Commit

Permalink
fix for new lines getting messed up in html editing. fixes #178.
Browse files Browse the repository at this point in the history
  • Loading branch information
jejacks0n committed Aug 6, 2012
1 parent c581fb9 commit 09fe628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/mercury/modals/htmleditor.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
# replace the contents on form submit
@element.find('form').on 'submit', (event) =>
event.preventDefault()
value = @element.find('textarea').val().replace(/\n/g, '')
value = @element.find('textarea').val()
Mercury.trigger('action', {action: 'replaceHTML', value: value})
@hide()

0 comments on commit 09fe628

Please sign in to comment.