阅读背景:

如何测试所选文本是否为链接?

来源:互联网 

I have a very simple WYSIWYG editor using contenteditable. It works fine, but I want to test if the selected text is being used as a link. When I use document.queryCommandState('CreateLink'), it always returns false, even if the text is within an anchor. Example below.I have a very simple WYSIWYG editor using conte




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: