mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Merge branch 'master' into add-editor-rulers
This commit is contained in:
@@ -36,7 +36,7 @@ class UiTab extends React.Component {
|
||||
this.handleSettingError = (err) => {
|
||||
this.setState({UiAlert: {
|
||||
type: 'error',
|
||||
message: err.message != null ? err.message : 'Error occurs!'
|
||||
message: err.message != null ? err.message : i18n.__('Error occurs!')
|
||||
}})
|
||||
}
|
||||
ipc.addListener('APP_SETTING_DONE', this.handleSettingDone)
|
||||
@@ -93,7 +93,8 @@ class UiTab extends React.Component {
|
||||
latexBlockOpen: this.refs.previewLatexBlockOpen.value,
|
||||
latexBlockClose: this.refs.previewLatexBlockClose.value,
|
||||
scrollPastEnd: this.refs.previewScrollPastEnd.checked,
|
||||
smartQuotes: this.refs.previewSmartQuotes.checked
|
||||
smartQuotes: this.refs.previewSmartQuotes.checked,
|
||||
sanitize: this.refs.previewSanitize.value
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,6 +189,7 @@ class UiTab extends React.Component {
|
||||
<option value='en'>{i18n.__('English')}</option>
|
||||
<option value='fr'>{i18n.__('French')}</option>
|
||||
<option value='de'>{i18n.__('German')}</option>
|
||||
<option value='hu'>{i18n.__('Hungarian')}</option>
|
||||
<option value='ja'>{i18n.__('Japanese')}</option>
|
||||
<option value='ko'>{i18n.__('Korean')}</option>
|
||||
<option value='no'>{i18n.__('Norwegian')}</option>
|
||||
@@ -472,6 +474,23 @@ class UiTab extends React.Component {
|
||||
Enable smart quotes
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div styleName='group-section'>
|
||||
<div styleName='group-section-label'>
|
||||
{i18n.__('Sanitization')}
|
||||
</div>
|
||||
<div styleName='group-section-control'>
|
||||
<select value={config.preview.sanitize}
|
||||
ref='previewSanitize'
|
||||
onChange={(e) => this.handleUIChange(e)}
|
||||
>
|
||||
<option value='STRICT'>✅ {i18n.__('Only allow secure html tags (recommended)')}
|
||||
</option>
|
||||
<option value='ALLOW_STYLES'>⚠️ {i18n.__('Allow styles')}</option>
|
||||
<option value='NONE'>❌ {i18n.__('Allow dangerous html tags')}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div styleName='group-section'>
|
||||
<div styleName='group-section-label'>
|
||||
{i18n.__('LaTeX Inline Open Delimiter')}
|
||||
|
||||
Reference in New Issue
Block a user