From 4195840b2c206db890ac34d9505d9781080d48a1 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 19 Jan 2017 11:00:22 +0000 Subject: [PATCH] make links in added info open in blank page rather than current window --- editor/js/ui/tab-info.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/js/ui/tab-info.js b/editor/js/ui/tab-info.js index fd9e74a42..156e29292 100644 --- a/editor/js/ui/tab-info.js +++ b/editor/js/ui/tab-info.js @@ -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); - $('
'+marked(textInfo)+'
').appendTo(content); + var ma = marked(textInfo).replace(/href=/g, 'target="_blank" href='); + $('
'+ma+'
').appendTo(content); //$('
'+(typeof info === "function" ? info.call(node) : info)+'
'; }