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

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -