Open links in another tab..

This commit is contained in:
Matias De lellis
2020-05-30 17:56:56 -03:00
parent c7cdb9cd6b
commit d417902d94

View File

@@ -220,6 +220,7 @@ View.prototype = {
var autolist = new AutoList();
var editor = new MediumEditor(modalcontent, {
targetBlank: true,
toolbar: {
buttons: [
'bold',
@@ -477,6 +478,11 @@ View.prototype = {
self.editNote(id);
});
// Doesn't show modal dialog when opening link
$("#app-content").on("click", ".note-grid-item a", function (event) {
event.stopPropagation();
});
// Cancel when click outside the modal.
$('#app-content').on('click', '.modal-note-background', function (event) {
event.stopPropagation();