开发者

CreateLink doesnt work in IE7/IE8 when overlapping text is selected

开发者 https://www.devze.com 2022-12-29 23:37 出处:网络
Please refer to this link开发者_StackOverflow中文版 for a rich text editor It works great in Mozilla. The problem comes in IE.

Please refer to this link开发者_StackOverflow中文版 for a rich text editor

It works great in Mozilla. The problem comes in IE. This is the use case.

1) Add Some text 2) Add a link to some portion of the entered text. 3) Now select some more text overlapping the previously selected text and add a link. 4) In mozilla this works fine and the complete tag is replaced with the new link 5) In IE somehow it doesnt work. It doesnt add the new link overwriting the previous link.

Can anyone help me in this.

Regards, Tina Agrawal


As far as I can tell, the demo there is not a cross browser implementation -- although the code is very similar.

A more cross-browser implementation that you can try is available at http://www.kevinroth.com/rte/, although it's old and I noticed at least one bug right away.

I would much rather recommend TinyMCE to you. It's fully cross browser compatible, easy to integrate and open source. http://tinymce.moxiecode.com/

0

精彩评论

暂无评论...
验证码 换一张
取 消