BootStrap WysiHTML编辑器复制/粘贴问题

问题描述:

我正在使用wysihtml编辑器,如果我在wyshtml编辑器中粘贴http://www.google.com,那么粘贴的值会在锚标记中作为值而不是我粘贴的值。如果我手动编写http://www.google.com,那么锚点不会作为值前缀。



所以我想要没有锚标记的值,我不想使用任何HTML代码(如删除:{})。请让我知道如何做到这一点:)

i am using wysihtml editor if i paste "http://www.google.com" in wyshtml editor then pasted value comes in anchor tags as value instead of the value what i pasted . if i manually write "http://www.google.com" then anchor is dose not prefixed as a value.

so i want the value without anchor tag ,and i don't want to use any html code(like remove:{} ). please let me know the way to do this :)

我只在Internet Explorer中看到过这种情况。假设您正在使用的是浏览器,请在页面加载时尝试执行以下javascript代码:

I've only ever seen this happen in Internet Explorer. Assuming that's the browser you're using, try executing the following javascript code when the page loads:
if (typeof(document.execCommand) === "function")
{
    try
    {
        document.execCommand("AutoUrlDetect", false, false);
    }
    catch (e)
    {
    }
}



禁用自动链接IE富文本编辑器 [ ^ ]