ok so i'm getting closer now, this is how far i have gotten... if i have a coded string like the following.
<strong>This is |simply </strong><em>some random text</em> <strong>that i typed| just for you.</strong>
if i make a selection like i have indicated above (left of 'simply', right of...
thanks for your reply!
already been spending a lot of time there, good page! i was thinking about first selecting a piece of text, then use rng.extractContent() to get a document fragment, then modify that fragment somehow and finally use rng.insertNode() to reinsert the modified fragment...
Hey, i'm building a DOM rich text editor and i have run into a few problems but i have one question for now...
i know i can easily use surroundContents() to add a new tag around some text... but what is the best way to remove it? so far i have been trying to select the entire node, extract the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.