Sync scroll in markdown editor

This commit is contained in:
Amaia Castro
2017-01-20 12:32:23 +01:00
parent 78219b5c31
commit b04030b7ff

View File

@@ -20,6 +20,9 @@ App.MarkdownEditor =
$('.legislation-draft-versions-edit .warning').show()
return
$(this).find('textarea').on 'scroll', ->
$('#markdown-preview').scrollTop($(this).scrollTop())
$(this).find('.fullscreen-toggle').on 'click', ->
$('.markdown-editor').toggleClass('fullscreen')