mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
fixed review comments
This commit is contained in:
@@ -175,7 +175,7 @@ export default class MarkdownPreview extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleSaveAsHtml () {
|
handleSaveAsHtml () {
|
||||||
this.exportAsDocument('html', function formatHtml (value) {
|
this.exportAsDocument('html', (value) => {
|
||||||
return this.refs.root.contentWindow.document.documentElement.outerHTML
|
return this.refs.root.contentWindow.document.documentElement.outerHTML
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -191,7 +191,7 @@ export default class MarkdownPreview extends React.Component {
|
|||||||
],
|
],
|
||||||
properties: ['openFile', 'createDirectory']
|
properties: ['openFile', 'createDirectory']
|
||||||
}
|
}
|
||||||
var value = formatter ? formatter.call(this, this.props.value) : this.props.value
|
const value = formatter ? formatter.call(this, this.props.value) : this.props.value
|
||||||
|
|
||||||
dialog.showSaveDialog(remote.getCurrentWindow(), options,
|
dialog.showSaveDialog(remote.getCurrentWindow(), options,
|
||||||
(filename) => {
|
(filename) => {
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ const file = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Html (.html)',
|
label: 'HTML (.html)',
|
||||||
click () {
|
click () {
|
||||||
mainWindow.webContents.send('list:isMarkdownNote')
|
mainWindow.webContents.send('list:isMarkdownNote')
|
||||||
mainWindow.webContents.send('export:save-html')
|
mainWindow.webContents.send('export:save-html')
|
||||||
|
|||||||
Reference in New Issue
Block a user