Skip to content

Commit 207ee12

Browse files
committed
Use https links in editor
1 parent 215bf50 commit 207ee12

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

martor/static/martor/js/martor.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -452,13 +452,13 @@
452452
var originalRange = editor.getSelectionRange();
453453
if (editor.selection.isEmpty()) {
454454
var curpos = editor.getCursorPosition();
455-
editor.session.insert(curpos, ' [](http://) ');
455+
editor.session.insert(curpos, ' [](https://) ');
456456
editor.focus();
457457
editor.selection.moveTo(curpos.row, curpos.column+2);
458458
}else {
459459
var range = editor.getSelectionRange();
460460
var text = editor.session.getTextRange(range);
461-
editor.session.replace(range, '['+text+'](http://) ');
461+
editor.session.replace(range, '['+text+'](https://) ');
462462
editor.focus();
463463
editor.selection.moveTo(
464464
originalRange.end.row,
@@ -473,13 +473,13 @@
473473
if (typeof(imageData) === 'undefined') {
474474
if (editor.selection.isEmpty()) {
475475
var curpos = editor.getCursorPosition();
476-
editor.session.insert(curpos, ' ![](http://) ');
476+
editor.session.insert(curpos, ' ![](https://) ');
477477
editor.focus();
478478
editor.selection.moveTo(curpos.row, curpos.column+3);
479479
}else {
480480
var range = editor.getSelectionRange();
481481
var text = editor.session.getTextRange(range);
482-
editor.session.replace(range, '!['+text+'](http://) ');
482+
editor.session.replace(range, '!['+text+'](https://) ');
483483
editor.focus();
484484
editor.selection.moveTo(
485485
originalRange.end.row,

0 commit comments

Comments
 (0)