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

Add new future resize editor & Preview Panes by dragging.(#1977)

This commit is contained in:
JianXu
2018-06-10 23:46:01 +08:00
parent 3a90a078ce
commit 6dc633c2a1
3 changed files with 65 additions and 7 deletions

View File

@@ -499,6 +499,7 @@ export default class CodeEditor extends React.Component {
fontFamily = _.isString(fontFamily) && fontFamily.length > 0
? [fontFamily].concat(defaultEditorFontFamily)
: defaultEditorFontFamily
let width = this.props.width
return (
<div
className={className == null
@@ -509,7 +510,8 @@ export default class CodeEditor extends React.Component {
tabIndex='-1'
style={{
fontFamily: fontFamily.join(', '),
fontSize: fontSize
fontSize: fontSize,
width: width
}}
onDrop={(e) => this.handleDropImage(e)}
/>