更改CLEditor中的锚标记 [英] Change the anchor tag in CLEditor

查看:86
本文介绍了更改CLEditor中的锚标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上使用CLEditor( CLEditor )并且它运行良好只是我希望能够将链接的目标设置为_blank但我无法弄明白,即使在查看源代码时也是如此。

Im using CLEditor on my website (CLEditor) and it is working well only I want to be able to set the target of links to _blank but I can't figure it out, even when looking into the source.

是否有人可以帮我制作链接编辑器的目标是_blank

Is there someone who can help me make the links made by the editor have a target of _blank

谢谢

推荐答案

你可以将属性添加到每个链接:

You could add the attribute to each link:

$("#cleeditor iframe").contents().find("a[href]").attr("target", "_blank");

这篇关于更改CLEditor中的锚标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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