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 () {
|
result.find("iframe").replaceWith(function () {
|
||||||
return "<noiframe>" + $(this).html() + "</noiframe>"
|
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