BootStrap WysiHTML编辑器复制/粘贴问题 [英] BootStrap WysiHTML Editor copy /paste issue

查看:98
本文介绍了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富文本编辑器 [ ^ ]


这篇关于BootStrap WysiHTML编辑器复制/粘贴问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆