problem with inserting HTML with insertHTML

Posted by bah on Stack Overflow See other posts from Stack Overflow or by bah
Published on 2010-05-16T16:44:30Z Indexed on 2010/05/16 16:50 UTC
Read the original article Hit count: 160

Filed under:

Hi, I'm trying to make wysiwyg editor with content editable divs and I'm inserting html with document.execCommand('insertHTML', false, html); but the problem is, when i insert link, and then i want to write after it continues to write INSIDE that link. EXAMPLE: how it does now: Hello, stackoverflow.com MyTextAfterLink how it should be: Hello, stackoverflow.com MyTextAfterLink How could i fix this? Thanks.

© Stack Overflow or respective owner

Related posts about JavaScript