2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-03 08:04:29 -06:00

Fill image and link prompts to 'https://' by default

This commit is contained in:
Nathanaël Jourdane 2019-02-27 17:10:07 +01:00
parent aa47cbd638
commit 1c7ce2a0d4
2 changed files with 3 additions and 3 deletions

2
dist/easymde.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -661,7 +661,7 @@ function drawLink(editor) {
var options = editor.options; var options = editor.options;
var url = 'https://'; var url = 'https://';
if (options.promptURLs) { if (options.promptURLs) {
url = prompt(options.promptTexts.link); url = prompt(options.promptTexts.link, 'https://');
if (!url) { if (!url) {
return false; return false;
} }
@ -678,7 +678,7 @@ function drawImage(editor) {
var options = editor.options; var options = editor.options;
var url = 'https://'; var url = 'https://';
if (options.promptURLs) { if (options.promptURLs) {
url = prompt(options.promptTexts.image); url = prompt(options.promptTexts.image, 'https://');
if (!url) { if (!url) {
return false; return false;
} }