Joomla TinyMCE 删除空跨度 [英] Joomla TinyMCE deletes empty span

查看:16
本文介绍了Joomla TinyMCE 删除空跨度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用以下标签

<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.

希望有人能帮忙.

最好的问候,丹尼斯

推荐答案

欢迎使用 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">&nbsp;</span></h4>

&nbsp; 只是一个不间断的空格

&nbsp; is simply a non breaking space

这篇关于Joomla TinyMCE 删除空跨度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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