Browse files

Fixed error with the tag "mark" on mousedown

  • Loading branch information...
1 parent b432a04 commit e590a371f42489b1a3db8a9dd7c8dd55c5f1ea98 @icebeat committed Nov 17, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 js/events.js
View
4 js/events.js
@@ -38,6 +38,10 @@ Extend(Editor.prototype, {
},
onMouseDown: function (e) {
+ if (e.target.localName == this.mark_container) {
+ return Event.preventDefault(e);
+ }
+
var self = this, view = this.element.view.getBoundingClientRect(), line = this.from.line;
var y = e.y >= view.bottom - 10 ? e.y - 10 : e.y;
var start = this.getPosition(e.x, y), last, going;

0 comments on commit e590a37

Please sign in to comment.