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:
commit
1158ef13aa
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user