Keep file:// prefix for drag & droped files

github/fork/yochananmarqos/patch-1
Gonçalo Silva 2019-06-22 00:37:42 +01:00
parent 7c6d2c12a3
commit ef4009fcd6
1 changed files with 0 additions and 2 deletions

View File

@ -31,8 +31,6 @@ class DragDropHandler:
mime = mimetypes.guess_type(uri)
if mime[0] is not None and mime[0].startswith('image'):
if uri.startswith("file://"):
uri = uri[7:]
text = "![Image caption](%s)" % uri
limit_left = 2
limit_right = 23