mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
Updated postProcess, link should open in new window or tab
This commit is contained in:
parent
2463a5126b
commit
bb13a98c13
1 changed files with 4 additions and 0 deletions
|
@ -207,6 +207,10 @@ function postProcess(code) {
|
|||
result.find("iframe").replaceWith(function () {
|
||||
return "<noiframe>" + $(this).html() + "</noiframe>"
|
||||
});
|
||||
//link should open in new window or tab
|
||||
result.find('a:not([target])').attr('target', '_blank');
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue