Skip to content

Commit

Permalink
预览窗格超链接在新窗口打开
Browse files Browse the repository at this point in the history
  • Loading branch information
techird committed Nov 26, 2014
1 parent 5f58695 commit c9e0eb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/ribbon/idea/note.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ KityMinder.registerUI('ribbon/idea/note', function(minder) {

var noteVisible = false;

$editor.on('keydown keyup keypress mouedown mouseup click contextmenu', function(e) {
$notePanel.on('keydown keyup keypress mouedown mouseup click contextmenu', function(e) {
e.stopPropagation();
});

Expand Down Expand Up @@ -84,6 +84,7 @@ KityMinder.registerUI('ribbon/idea/note', function(minder) {

if ($previewTab.hasClass(activeTabClass)) {
$preview.html(axss(marked(note)));
$preview.find('a').attr('target', '_blank');
}
}
}
Expand Down Expand Up @@ -122,6 +123,7 @@ KityMinder.registerUI('ribbon/idea/note', function(minder) {
$editor.hide();
$editTab.removeClass(activeTabClass);
$preview.html(axss(marked(editor.getValue()))).show();
$preview.find('a').attr('target', '_blank');
$previewTab.addClass(activeTabClass);
}

Expand Down

0 comments on commit c9e0eb3

Please sign in to comment.