本文介绍了如何在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图像中添加标题属性
发布评论