Skip to content

Commit

Permalink
1.5.12
Browse files Browse the repository at this point in the history
  • Loading branch information
RickStrahl committed Sep 1, 2017
1 parent cf1440e commit 058fdb4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
Binary file modified Install/Builds/CurrentRelease/MarkdownMonster_Version.xml
Binary file not shown.
2 changes: 1 addition & 1 deletion Install/Chocolatey/markdownmonster.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>MarkdownMonster</id>
<version>1.5.8</version>
<version>1.5.12</version>
<title>Markdown Monster</title>
<authors>Rick Strahl, West Wind Technologies</authors>
<owners>West Wind Technologies</owners>
Expand Down
Binary file modified Install/Chocolatey/tools/chocolateyInstall.ps1
Binary file not shown.
54 changes: 27 additions & 27 deletions MarkdownMonster/Editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,31 +170,31 @@ var te = window.textEditor = {
sc.contentModified = true;
});

// special selections for images code and links
te.editor.on('mousedown', function (e) {
if (e.domEvent.which != 3) return;

var text = te.getselection();
var markdown = null;
var handled = false;
if (text.startsWith("![") && text.endsWith(")")) {
markdown = te.editorSelectionOperation("image", text);
handled = true;
} else if (text.startsWith("[") && text.endsWith(")")) {
markdown = te.editorSelectionOperation("link", text);
handled = true;
} else if (text.startsWith("```") && text.endsWith("```")) {
markdown = te.editorSelectionOperation("code", text);
handled = true;
}
if (handled) {
e.preventDefault();
e.stopPropagation();
return false;
}
if (markdown != null)
te.setselection(markdown);
});
// // special selections for images code and links
// te.editor.on('mousedown', function (e) {
// if (e.domEvent.which != 3) return;

// var text = te.getselection();
// var markdown = null;
// var handled = false;
// if (text.startsWith("![") && text.endsWith(")")) {
// markdown = te.editorSelectionOperation("image", text);
// handled = true;
// } else if (text.startsWith("[") && text.endsWith(")")) {
// markdown = te.editorSelectionOperation("link", text);
// handled = true;
// } else if (text.startsWith("```") && text.endsWith("```")) {
// markdown = te.editorSelectionOperation("code", text);
// handled = true;
// }
// if (handled) {
// e.preventDefault();
// e.stopPropagation();
// return false;
// }
// if (markdown != null)
// te.setselection(markdown);
//});



Expand Down Expand Up @@ -655,8 +655,8 @@ window.onmousewheel = function(e) {

// pass context popup to WPF for handling there
window.oncontextmenu = function (e) {
//e.preventDefault();
//e.cancelBubble = true;
e.preventDefault();
e.cancelBubble = true;

te.mm.textbox.EditorContextMenu();

Expand Down

0 comments on commit 058fdb4

Please sign in to comment.