Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions plugins/image-dialog/image-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"<input type=\"text\" value=\"" + selection + "\" data-alt />" +
"<br/>" +
"<label>" + imageLang.link + "</label>" +
"<input type=\"text\" value=\"http://\" data-link />" +
"<input type=\"text\" value=\"https://\" data-link />" +
"<br/>" +
( (settings.imageUpload) ? "</form>" : "</div>");

Expand Down Expand Up @@ -93,7 +93,7 @@

var altAttr = (alt !== "") ? " \"" + alt + "\"" : "";

if (link === "" || link === "http://")
if (link === "" || link === "https://")
{
cm.replaceSelection("![" + alt + "](" + url + altAttr + ")");
}
Expand Down Expand Up @@ -189,7 +189,7 @@
dialog = editor.find("." + dialogName);
dialog.find("[type=\"text\"]").val("");
dialog.find("[type=\"file\"]").val("");
dialog.find("[data-link]").val("http://");
dialog.find("[data-link]").val("https://");

this.dialogShowMask(dialog);
this.dialogLockScreen();
Expand Down
6 changes: 3 additions & 3 deletions plugins/link-dialog/link-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
if (editor.find("." + dialogName).length > 0)
{
dialog = editor.find("." + dialogName);
dialog.find("[data-url]").val("http://");
dialog.find("[data-url]").val("https://");
dialog.find("[data-title]").val(selection);

this.dialogShowMask(dialog);
Expand All @@ -43,7 +43,7 @@
{
var dialogHTML = "<div class=\"" + classPrefix + "form\">" +
"<label>" + linkLang.url + "</label>" +
"<input type=\"text\" value=\"http://\" data-url />" +
"<input type=\"text\" value=\"https://\" data-url />" +
"<br/>" +
"<label>" + linkLang.urlTitle + "</label>" +
"<input type=\"text\" value=\"" + selection + "\" data-title />" +
Expand All @@ -67,7 +67,7 @@
var url = this.find("[data-url]").val();
var title = this.find("[data-title]").val();

if (url === "http://" || url === "")
if (url === "https://" || url === "")
{
alert(linkLang.urlEmpty);
return false;
Expand Down
6 changes: 3 additions & 3 deletions plugins/reference-link-dialog/reference-link-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"<input type=\"text\" data-url-id />" +
"<br/>" +
"<label>" + dialogLang.url + "</label>" +
"<input type=\"text\" value=\"http://\" data-url />" +
"<input type=\"text\" value=\"https://\" data-url />" +
"<br/>" +
"<label>" + dialogLang.urlTitle + "</label>" +
"<input type=\"text\" value=\"" + selection + "\" data-title />" +
Expand Down Expand Up @@ -80,7 +80,7 @@
return false;
}

if (url === "http://" || url === "")
if (url === "https://" || url === "")
{
alert(dialogLang.urlEmpty);
return false;
Expand Down Expand Up @@ -113,7 +113,7 @@
dialog = editor.find("." + dialogName);
dialog.find("[data-name]").val("[" + ReLinkId + "]");
dialog.find("[data-url-id]").val("");
dialog.find("[data-url]").val("http://");
dialog.find("[data-url]").val("https://");
dialog.find("[data-title]").val(selection);

this.dialogShowMask(dialog);
Expand Down