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

pull/62/head
Nathanaël Jourdane 5 years ago
parent aa47cbd638
commit 1c7ce2a0d4

File diff suppressed because one or more lines are too long

@ -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…
Cancel
Save