Joomla TinyMCE删除空跨度 [英] Joomla TinyMCE deletes empty span
问题描述
我想使用以下标签
<h4><span class="icon-phone"></span></h4>
但是当我保存它时,Joomla的TinyMCE总是将其删除.
but TinyMCE from Joomla always deletes it, when i save it.
我在PluginManager的TinyMCE的选项"中找到了必须将span [*]添加到扩展的有效元素"的解决方案.但这是行不通的.它总是一遍又一遍地删除它.我在这里搜索了一段时间,发现了一些与我的问题相似但无法解决的文章.
I find the solution that i have to add span[*] to "Extended Valid Elements" in Options from TinyMCE in PluginManager. but it doesn't work. It always delete it again and again. I searched here for a while and found some articles which was similar to my problem but doesn't solve it.
我使用的是Joomla版本3.3.6,插件是4.1.2.
I use Joomla Version 3.3.6 and the plugin is 4.1.2.
希望有人可以提供帮助.
Hope somebody can help.
最好的问候, 丹尼斯
推荐答案
欢迎使用我最讨厌的编辑器TinyMCE.
Welcome to TinyMCE, my most hated editor ever.
我多次遇到相同的问题,我相信这是因为编辑器希望元素中包含内容.因此,请尝试以下操作:
I've had the same problem multiple times and I believe it's because the editor expects content within the element. So try the following:
<h4><span class="icon-phone"> </span></h4>
只是一个不间断的空格
is simply a non breaking space
这篇关于Joomla TinyMCE删除空跨度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!