Skip to content

Commit

Permalink
need elem for range
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbraden committed Mar 6, 2012
1 parent 842c8b1 commit 5c1b712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom.js
Expand Up @@ -536,7 +536,7 @@ s.caretCoords= function(elem){


$('.yj-ghost').remove(); $('.yj-ghost').remove();
var phantom = "<span class='yj-ghost'>I</span>" 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) range.replaceContents(phantom)


var $phantom = $('.yj-ghost') var $phantom = $('.yj-ghost')
Expand Down

0 comments on commit 5c1b712

Please sign in to comment.