如何删除“标题”属性,CKEditor 4自动添加在线编辑? [英] How to remove the "title" attribute that the CKEditor 4 add automatically on inline editing?

查看:521
本文介绍了如何删除“标题”属性,CKEditor 4自动添加在线编辑?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在对象上使用CKEditor 4内联编辑时,CKEditor添加一个包含
文本和对象id的Title属性。

When using CKEditor 4 Inline Editing on a object the CKEditor add a "Title" attribute that include a text and the object id.

在CKEditor的内联示例中,我们可以看到下面的代码:

e.g. In the CKEditor inline example we can see the next code:

<h2 id="inline-sampleTitle" title="Rich Text Editor, inline-sampleTitle"....>CKEditor<br>Goes Inline!</h2>

我喜欢删除title属性,因为我不喜欢用户看到它id是更复杂的:))。

I like to remove the "title" attribute because i do not like the user to see it (my id is more complicated :) ).

注意:我试图在CKEditor使用jQueryremoveAttr函数创建它之后手动删除它,但是这个
解决方案对我来说不是很好,因为在IE浏览器中,用户仍然在第一次看到它,它将
只有在用户鼠标出来后从对象中删除。

Note: I was trying to remove it manually after the CKEditor create it using jQuery "removeAttr" function but this solution is not really good for me because in IE browsers the user still see it in the first time and it will remove only after the user mouse out from the object.

推荐答案

CKEDITOR.config.title = false;

CKEDITOR.config.title = false;

详情请访问

For More Details Visit this

这篇关于如何删除“标题”属性,CKEditor 4自动添加在线编辑?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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