File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -799,7 +799,9 @@ var url = window.location.protocol + '//' + window.location.host + window.locati
799799ui . toolbar . publish . attr ( "href" , url + "/publish" ) ;
800800//download
801801//markdown
802- ui . toolbar . download . markdown . click ( function ( ) {
802+ ui . toolbar . download . markdown . click ( function ( e ) {
803+ e . preventDefault ( ) ;
804+ e . stopPropagation ( ) ;
803805 var filename = renderFilename ( ui . area . markdown ) + '.md' ;
804806 var markdown = editor . getValue ( ) ;
805807 var blob = new Blob ( [ markdown ] , {
@@ -808,7 +810,9 @@ ui.toolbar.download.markdown.click(function () {
808810 saveAs ( blob , filename ) ;
809811} ) ;
810812//html
811- ui . toolbar . download . html . click ( function ( ) {
813+ ui . toolbar . download . html . click ( function ( e ) {
814+ e . preventDefault ( ) ;
815+ e . stopPropagation ( ) ;
812816 exportToHTML ( ui . area . markdown ) ;
813817} ) ;
814818//export to dropbox
You can’t perform that action at this time.
0 commit comments