mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
[update] move default value of the customCSS field to ConfigManager
This commit is contained in:
committed by
Junyoung Choi
parent
c012bbd54a
commit
3f96587a70
@@ -85,7 +85,7 @@ export const DEFAULT_CONFIG = {
|
|||||||
breaks: true,
|
breaks: true,
|
||||||
smartArrows: false,
|
smartArrows: false,
|
||||||
allowCustomCSS: false,
|
allowCustomCSS: false,
|
||||||
customCSS: '',
|
customCSS: '/* Drop Your Custom CSS Code Here */',
|
||||||
sanitize: 'STRICT', // 'STRICT', 'ALLOW_STYLES', 'NONE'
|
sanitize: 'STRICT', // 'STRICT', 'ALLOW_STYLES', 'NONE'
|
||||||
lineThroughCheckbox: true
|
lineThroughCheckbox: true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -883,7 +883,6 @@ class UiTab extends React.Component {
|
|||||||
onChange={e => this.handleUIChange(e)}
|
onChange={e => this.handleUIChange(e)}
|
||||||
ref={e => (this.customCSSCM = e)}
|
ref={e => (this.customCSSCM = e)}
|
||||||
value={config.preview.customCSS}
|
value={config.preview.customCSS}
|
||||||
defaultValue={'/* Drop Your Custom CSS Code Here */\n'}
|
|
||||||
options={{
|
options={{
|
||||||
lineNumbers: true,
|
lineNumbers: true,
|
||||||
mode: 'css',
|
mode: 'css',
|
||||||
|
|||||||
Reference in New Issue
Block a user