mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
set Basefont
This commit is contained in:
@@ -152,7 +152,7 @@ export default class CodeEditor extends React.Component {
|
||||
className={this.props.className == null ? 'CodeEditor' : 'CodeEditor ' + this.props.className}
|
||||
style={{
|
||||
fontSize: this.state.fontSize,
|
||||
fontFamily: this.state.fontFamily
|
||||
fontFamily: this.state.fontFamily.trim() + ', monospace'
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
||||
@@ -183,7 +183,10 @@ export default class MarkdownPreview extends React.Component {
|
||||
onMouseMove={e => this.handleMouseMove(e)}
|
||||
onMouseUp={e => this.handleMouseUp(e)}
|
||||
dangerouslySetInnerHTML={{__html: ' ' + content}}
|
||||
style={{fontSize: this.state.fontSize, fontFamily: this.state.fontFamily}}
|
||||
style={{
|
||||
fontSize: this.state.fontSize,
|
||||
fontFamily: this.state.fontFamily.trim() + ', helvetica, arial, sans-serif'
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user