/    Sign up×
Community /Pin to ProfileBookmark

Replace text in an iframe???

i have a rich text box and i want to use the insert hyperlink feature in firefox. ive looked at so much information on range and selection that im so confused now. i can return the selection and even return the starting and end positions of the selection, but i dont know how to use these values to edit the selection itself. on top of that, the editing of the selection is being done in a pop-up window, so im using window.opener to get all the information from the iframe. i’ve seen this feature implemented on a number of sites that work in firefox, but most of them seem to use a textarea element and use its value to edit. i dont believe there is an equivalent to a textarea value attribute in an iframe is there?

any help is much appreciated!

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @ck_bullet spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...