2 Replies - 112 Views - Last Post: 16 December 2018 - 07:24 AM Rate Topic: -----

#1 sarathi2006   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 15-December 18

How to move cursor to end of iframe contenteditable

Posted 15 December 2018 - 04:20 PM

<div class="container">
<iframe>
<html>
<body contenteditable="true">fddsfg fds dgdfgdsgfdsgds
</body

</html>
</iframe>

</div

https://stackoverflo...editable-entity







I tried above link in both ways like below.



setCaretToEnd('.richeditor .container');

//var s= $('.richeditor .container');

//setEndOfContenteditable(s);







but, Still, the cursor is nr working...Any help appreciated.

Is This A Good Question/Topic? 0
  • +

Replies To: How to move cursor to end of iframe contenteditable

#2 andrewsw   User is offline

  • head thrashing
  • member icon

Reputation: 6666
  • View blog
  • Posts: 27,292
  • Joined: 12-December 12

Re: How to move cursor to end of iframe contenteditable

Posted 16 December 2018 - 03:46 AM

That HTML is broken.

Do you need an iframe?
Was This Post Helpful? 0
  • +
  • -

#3 sarathi2006   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 15-December 18

Re: How to move cursor to end of iframe contenteditable

Posted 16 December 2018 - 07:24 AM

Yes..I need to move the cursor end of <iframe> <body contenteditable="true"> fhhhffhgjfgh </body></iframe>.I typed the markup.Maybe some mistakes.But this is the concept.How to move the cus\rsor end of contenteditable body when page loads
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1