jquery - Set Cursor Position to end of text in contenteditable div -


i have 2 issues in following scinario:

<div id="test" contenteditable="true">    <font face="arial"> test text </font> </div> 

when replace text of font tag text cursor position set initial position want cursor position @ end of text in content editable. when remove full text contenteditable div removes font tag also, want keep font tag intact. can't set contenteditable font tag bcoz dynamic.


Comments