1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

feat(config): add ablility to opt out of fetch url

This commit is contained in:
Georges Indrianjafy
2018-02-04 13:58:02 +02:00
parent 9b54272f8e
commit 56d6eb7077
6 changed files with 19 additions and 2 deletions

View File

@@ -75,7 +75,8 @@ class UiTab extends React.Component {
indentSize: this.refs.editorIndentSize.value,
switchPreview: this.refs.editorSwitchPreview.value,
keyMap: this.refs.editorKeyMap.value,
scrollPastEnd: this.refs.scrollPastEnd.checked
scrollPastEnd: this.refs.scrollPastEnd.checked,
fetchUrlTitle: this.refs.editorFetchUrlTitle.checked,
},
preview: {
fontSize: this.refs.previewFontSize.value,
@@ -315,6 +316,17 @@ class UiTab extends React.Component {
</label>
</div>
<div styleName='group-checkBoxSection'>
<label>
<input onChange={(e) => this.handleUIChange(e)}
checked={this.state.config.editor.fetchUrlTitle}
ref='editorFetchUrlTitle'
type='checkbox'
/>&nbsp;
Allow editor to fetch url titles on when pasting url
</label>
</div>
<div styleName='group-header2'>Preview</div>
<div styleName='group-section'>
<div styleName='group-section-label'>