Import using drag&drop over the textarea (Fixes #38). Unescape ':' character in anchors (Fixes #29).

This commit is contained in:
benweet 2013-07-10 23:43:14 +01:00
parent 0e9b39866a
commit a61f473ef1
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ define([
converter = new toMarkdown.converter();
$("#input-file-import-harddrive-markdown").change(handleMarkdownImport);
$('#dropzone-import-harddrive-markdown').each(function() {
$('#dropzone-import-harddrive-markdown, #wmd-input').each(function() {
this.addEventListener('dragover', handleDragOver, false);
this.addEventListener('drop', handleMarkdownImport, false);
});

View File

@ -1378,7 +1378,7 @@ else
if (match == "~D") // escape for dollar
return "%24";
if (match == ":") {
if (offset == len - 1 || /[0-9\/]/.test(url.charAt(offset + 1)))
//if (offset == len - 1 || /[0-9\/]/.test(url.charAt(offset + 1)))
return ":"
}
return "%" + match.charCodeAt(0).toString(16);