1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Merge pull request #293 from asmsuechan/copy-image-on-dropped-into-CodeEditor

Add dataApi.copyImage for copying image to boostnote storage on an image dropped into CodeEditor
This commit is contained in:
Sota Sugiura
2017-06-05 01:29:11 +09:00
committed by GitHub
4 changed files with 44 additions and 6 deletions

View File

@@ -203,7 +203,7 @@ class MarkdownEditor extends React.Component {
}
render () {
let { className, value, config } = this.props
let { className, value, config, storageKey } = this.props
let editorFontSize = parseInt(config.editor.fontSize, 10)
if (!(editorFontSize > 0 && editorFontSize < 101)) editorFontSize = 14
@@ -236,6 +236,7 @@ class MarkdownEditor extends React.Component {
fontSize={editorFontSize}
indentType={config.editor.indentType}
indentSize={editorIndentSize}
storageKey={storageKey}
onChange={(e) => this.handleChange(e)}
onBlur={(e) => this.handleBlur(e)}
/>