diff --git a/Install/Builds/CurrentRelease/MarkdownMonster_Version.xml b/Install/Builds/CurrentRelease/MarkdownMonster_Version.xml index 26b9dbaea..0f70142da 100644 Binary files a/Install/Builds/CurrentRelease/MarkdownMonster_Version.xml and b/Install/Builds/CurrentRelease/MarkdownMonster_Version.xml differ diff --git a/Install/Chocolatey/markdownmonster.nuspec b/Install/Chocolatey/markdownmonster.nuspec index 8cddb7dfe..ca17f3f93 100644 --- a/Install/Chocolatey/markdownmonster.nuspec +++ b/Install/Chocolatey/markdownmonster.nuspec @@ -2,7 +2,7 @@ MarkdownMonster - 1.5.8 + 1.5.12 Markdown Monster Rick Strahl, West Wind Technologies West Wind Technologies diff --git a/Install/Chocolatey/tools/chocolateyInstall.ps1 b/Install/Chocolatey/tools/chocolateyInstall.ps1 index 324e4d45c..27aa66718 100644 Binary files a/Install/Chocolatey/tools/chocolateyInstall.ps1 and b/Install/Chocolatey/tools/chocolateyInstall.ps1 differ diff --git a/MarkdownMonster/Editor/editor.js b/MarkdownMonster/Editor/editor.js index e96f7eed2..073a32700 100644 --- a/MarkdownMonster/Editor/editor.js +++ b/MarkdownMonster/Editor/editor.js @@ -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); + //}); @@ -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();