getSelection() remove html and replace with text
Hi all,
how can we replace the getSelection HTML in an iframe?
I want to getSelection() and the replace selection's html with simple text.
45 Minutes
Discussion Span
Related Article: How to make HTML code appear as text?
is a solved JavaScript / DHTML / AJAX discussion thread by yehoshua2123 that has 6 replies, was last updated 10 months ago and has been tagged with the keywords: html, jquery.
softDeveloper
Junior Poster in Training
76 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
found it:
self.parent.frames[i].getSelection().anchorNode.parentNode.outerHTML=self.parent.frames[i].getSelection().anchorNode.parentNode.innerHTML;
softDeveloper
Junior Poster in Training
76 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0