Browse files

need elem for range

  • Loading branch information...
1 parent 842c8b1 commit 5c1b7123f576f3e7f88da7af92c7f9619e1014d1 @peterbraden committed Mar 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/dom.js
View
2 src/dom.js
@@ -536,7 +536,7 @@ s.caretCoords= function(elem){
$('.yj-ghost').remove();
var phantom = "<span class='yj-ghost'>I</span>"
- , range = yam.dom.range(s.caretPos(elem), s.caretPos(elem));
+ , range = yam.dom.range(elem, s.caretPos(elem), s.caretPos(elem));
range.replaceContents(phantom)
var $phantom = $('.yj-ghost')

0 comments on commit 5c1b712

Please sign in to comment.