1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

make links in added info open in blank page rather than current window

This commit is contained in:
Dave Conway-Jones 2017-01-19 11:00:22 +00:00
parent 0ffeb0c5af
commit 4195840b2c

View File

@ -124,7 +124,8 @@ RED.sidebar.info = (function() {
} else if (node._def && node._def.info) {
var info = node._def.info;
var textInfo = (typeof info === "function" ? info.call(node) : info);
$('<div class="node-help"><span class="bidiAware" dir=\"'+RED.text.bidi.resolveBaseTextDir(textInfo)+'">'+marked(textInfo)+'</span></div>').appendTo(content);
var ma = marked(textInfo).replace(/href=/g, 'target="_blank" href=');
$('<div class="node-help"><span class="bidiAware" dir=\"'+RED.text.bidi.resolveBaseTextDir(textInfo)+'">'+ma+'</span></div>').appendTo(content);
//$('<div class="node-help">'+(typeof info === "function" ? info.call(node) : info)+'</div>';
}