如何在CKEditor图像中添加标题属性

编程入门 行业动态 更新时间:2024-10-09 22:23:09
本文介绍了如何在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图像中添加标题属性

本文发布于:2023-11-28 19:04:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1643596.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:属性   图像   标题   如何在   CKEditor

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!