mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
GFM checkbox
This commit is contained in:
@@ -219,6 +219,12 @@ export default class CodeEditor extends React.Component {
|
||||
session.on('change', this.changeHandler)
|
||||
}
|
||||
|
||||
setValue (value) {
|
||||
let session = this.editor.getSession()
|
||||
session.setValue(value)
|
||||
this.value = value
|
||||
}
|
||||
|
||||
render () {
|
||||
let { className, fontFamily } = this.props
|
||||
fontFamily = _.isString(fontFamily) && fontFamily.length > 0
|
||||
|
||||
Reference in New Issue
Block a user