Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first attempt to export html #1256

Merged
merged 2 commits into from
Dec 28, 2017
Merged

first attempt to export html #1256

merged 2 commits into from
Dec 28, 2017

Conversation

mslourens
Copy link
Contributor

minimum viable implementation of #1233, please let me know what you think.

@BoostnoteBot
Copy link
Collaborator

Be sure to be changed browser/main/Detail/SnippetNoteDetail.js.

@kazup01
Copy link
Member

kazup01 commented Dec 9, 2017

Awesome!
I think that it would be better if there is feature that share notes on the web, what do you think? @mslourens

@kazup01 kazup01 added the discussion 💬 Issue concerns a discussion. label Dec 9, 2017
@mslourens
Copy link
Contributor Author

mslourens commented Dec 10, 2017 via email

@kazup01
Copy link
Member

kazup01 commented Dec 11, 2017

I understand this pull request. I think that it would be better if could display the notes on web page as a future plan.

@kazup01 kazup01 added awaiting review ❇️ Pull request is awaiting a review. and removed discussion 💬 Issue concerns a discussion. labels Dec 11, 2017
@@ -173,21 +174,29 @@ export default class MarkdownPreview extends React.Component {
this.exportAsDocument('md')
}

handleSaveAsHtml () {
this.exportAsDocument('html', function formatHtml (value) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need to name function. plz just write such as (value) => this.refs.root.contentWindow.document.documentElement.outerHTML

const options = {
filters: [
{ name: 'Documents', extensions: [fileType] }
],
properties: ['openFile', 'createDirectory']
}
var value = formatter ? formatter.call(this, this.props.value) : this.props.value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz use const

lib/main-menu.js Outdated
@@ -106,6 +106,13 @@ const file = {
mainWindow.webContents.send('list:isMarkdownNote')
mainWindow.webContents.send('export:save-md')
}
},
{
label: 'Html (.html)',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HTML is better, I think

Copy link
Contributor

@sota1235 sota1235 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz confirm my comments

@sota1235 sota1235 removed their assignment Dec 13, 2017
Copy link
Contributor

@sota1235 sota1235 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for fixing

@sota1235 sota1235 added next release (v0.8.20) and removed awaiting review ❇️ Pull request is awaiting a review. labels Dec 27, 2017
@kazup01 kazup01 self-requested a review December 28, 2017 01:38
Copy link
Member

@kazup01 kazup01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine

@kazup01 kazup01 merged commit dd729c4 into BoostIO:master Dec 28, 2017
@kazup01
Copy link
Member

kazup01 commented Dec 28, 2017

Merged. Thanks for your contribution @mslourens !

@Rokt33r Rokt33r mentioned this pull request Jan 13, 2018
@mslourens mslourens deleted the export-html branch January 17, 2018 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants