mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-09 00:30:14 +03:00
Support core up/down events in markdown preview view
This commit is contained in:
parent
8c0f443c75
commit
ae7c5b0fda
@ -19,6 +19,10 @@ class MarkdownPreview extends View
|
||||
@attach() if @isMarkdownFile(path)
|
||||
|
||||
@on 'markdown-preview:detach', => @detach()
|
||||
@on 'core:page-up', => @pageUp()
|
||||
@on 'core:page-down', => @pageDown()
|
||||
@on 'core:move-to-top', => @scrollToTop()
|
||||
@on 'core:move-to-bottom', => @scrollToBottom()
|
||||
|
||||
attach: ->
|
||||
@rootView.append(this)
|
||||
|
Loading…
Reference in New Issue
Block a user