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

Merge pull request #62 from roipoussiere/prompt_with_https

Fill image and link prompts to 'https://' by default
This commit is contained in:
Jeroen Akkerman 2019-02-28 16:22:07 +01:00 committed by GitHub
commit 1158ef13aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
@ -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;
}