使用WYSIWYG编辑器时,Joomla 1.5文章中的某些HTML标签(例如IFRAME)和Javascript将自动删除 [英] Some HTML tags (e.g. IFRAME) and Javascript in Joomla 1.5 articles are automatically removed when using the WYSIWYG editor

查看:119
本文介绍了使用WYSIWYG编辑器时,Joomla 1.5文章中的某些HTML标签(例如IFRAME)和Javascript将自动删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Joomla 1.5中使用WYSIWYG编辑器创建网站内容时,我无法自由插入HTML标记,例如IFRAME,因为在保存文章时将自动删除HTML标记.我可以配置Joomla使其不使用所见即所得的编辑器,这会使编辑文章有些麻烦,或者我可以使用MySQL Query Browser强制HTML代码进入文章,并直接在网站的数据库中更改文章的内容.这样做不仅麻烦,而且效率低下,因为每次有人从Joomla后端WYSIWYG编辑器编辑文章时,插入的标签都会被编辑器再次删除.

When using a WYSIWYG editor in Joomla 1.5 to create website content I am not able to freely insert HTML tags, such as IFRAME as the HTML tags will be automatically removed on saving the article. I can either configure Joomla not to use a WYSIWYG editor which makes editing articles a bit of a pain, or I can force the HTML code into the article using MySQL Query Browser and altering the article content directly in the site's database. Doing this is not only cumbersome but also ineffective, because every time someone edits the article from the Joomla back end WYSIWYG editor, the inserted tags will be removed by the editor again.

是否可以在不关闭WYSIWYG编辑器或不使用数据库的情况下将IFRAME(或JavaScript)插入Joomla 1.5文章中?

Is there a way of inserting an IFRAME (or perhaps JavaScript) into a Joomla 1.5 article, without turning off the WYSIWYG editor or hacking away at the database?

推荐答案

简短答案:否. Joomla最了解:P

Short answer: no. Joomla knows best :P

但是,很重要的是,您可以仅为您的用户关闭所见即所得.转到用户管理器",选择您的帐户,然后将用户编辑器"首选项设置为编辑器-无编辑器".这样,您就可以键入所需的任何标签和代码,而不会出现所见即所得"的麻烦.但是该网站上的所有其他帐户仍然可以访问其所见即所得的帐户.

But seriously, you can turn off the WYSIWYG for just your user. Go to the 'User Manager', select your account, and set the 'User Editor' preference to be 'Editor - No Editor'. That way you can type in whatever tags and code you want, without WYSIWYG borkage. But every other account on the site will still have access to their WYSIWYG's.

当您需要进行一些精确的HTML/Javascript/etc编码时,以这种方式切换所见即所得"的时间不会太长.

Doesn't take too long to toggle the WYWIWYG that way when you need to do a bit of precise HTML/Javascript/etc coding.

这篇关于使用WYSIWYG编辑器时,Joomla 1.5文章中的某些HTML标签(例如IFRAME)和Javascript将自动删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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