Skip to content

Commit

Permalink
Potential fix for firefox bug #2
Browse files Browse the repository at this point in the history
  • Loading branch information
madeyoga committed Jul 6, 2021
1 parent 80f4314 commit aecbe60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chunchunmaru-mde.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ chunchunmaru.prototype.addBracketToSelection = function(pre, post) {
var start = textarea.selectionStart;
var end = textarea.selectionEnd;

var selectedText = window.getSelection().toString();
var selectedText = content.substring(start, end); // window.getSelection().toString();

var processedText = pre + selectedText + post;

Expand Down

0 comments on commit aecbe60

Please sign in to comment.