mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-01 15:11:02 -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 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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user