Skip to content

Commit

Permalink
Merge pull request #62 from roipoussiere/prompt_with_https
Browse files Browse the repository at this point in the history
Fill image and link prompts to 'https://' by default
  • Loading branch information
Ionaru committed Feb 28, 2019
2 parents d95de92 + 96c8c22 commit 1158ef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/easymde.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ function drawLink(editor) {
var options = editor.options;
var url = 'https://';
if (options.promptURLs) {
url = prompt(options.promptTexts.link);
url = prompt(options.promptTexts.link, 'https://');
if (!url) {
return false;
}
Expand All @@ -678,7 +678,7 @@ function drawImage(editor) {
var options = editor.options;
var url = 'https://';
if (options.promptURLs) {
url = prompt(options.promptTexts.image);
url = prompt(options.promptTexts.image, 'https://');
if (!url) {
return false;
}
Expand Down

0 comments on commit 1158ef1

Please sign in to comment.