Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #97 from yhatt/fix-insert-image-path
Browse files Browse the repository at this point in the history
Fix image path contains space by inserting D&D
  • Loading branch information
yhatt authored Oct 8, 2016
2 parents 71ed407 + fded5e9 commit 93d0331
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion coffee/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class EditorStates
else
@_imageDirectory = directory

insertImage: (filePath) => @codeMirror.replaceSelection("![](#{filePath})\n")
insertImage: (filePath) => @codeMirror.replaceSelection("![](#{filePath.replace(/ /g, '%20')})\n")

updateGlobalSetting: (prop, value) =>
latestPos = null
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"devDependencies": {
"coffee-script": "^1.10.0",
"del": "^2.2.0",
"electron": "1.4.1",
"electron-packager": "7.3.0",
"electron": "1.4.3",
"electron-packager": "8.1.0",
"glob": "^7.0.0",
"gulp": "^3.9.0",
"gulp-coffee": "^2.3.1",
Expand Down

0 comments on commit 93d0331

Please sign in to comment.