如何在CKEditor图像中添加标题属性 [英] How to add title attribute at CKEditor images

查看:150
本文介绍了如何在CKEditor图像中添加标题属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法添加标题属性CKEditor图像?我使用v4.1.2和CKEditor是每次从HTML源视图添加时自动删除它。我没有找到任何有关这个!

Is there a way to add the title attibute to CKEditor images? I'm using v4.1.2 and CKEditor is removing it automatically each time it's added from the HTML source view. I haven't found anything about this!

推荐答案

你必须定义 config.extraAllowedContent ='img [title]' if您需要将 title 属性接受到编辑器内容中(请参阅:官方指南)。

You got to define config.extraAllowedContent = 'img[title]' if you want title attribute to be accepted into editor contents (see: official guide).

这篇关于如何在CKEditor图像中添加标题属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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