Joomla 3无法添加< script>到文章 [英] Joomla 3 can't add <script> to article
问题描述
Joomla版本: Joomla! 3.3.6稳定[Ember] 01-October-2014 02:00 GMT
Joomla version: Joomla! 3.3.6 Stable [ Ember ] 01-October-2014 02:00 GMT
我想在我的文章中添加js脚本。我正在使用TinyMCE编辑器编辑文章。
I want add js script to one my article. I'm using TinyMCE editor to edit article.
在TinyMCE插件字段禁止元素我填充了虚拟文本,现在它包含cms123 ,我删除了script,applet,iframe。
In TinyMCE plugin field Prohibited Elements I filled with dummy text, now it contains "cms123", I removed "script,applet,iframe".
我检查了全局配置 - > 文本过滤器 strong>超级用户我已将其设置为无过滤。
I checked Global Configurations -> Text Filters for Super Users I have set it "No Filtering".
但是当我尝试使用js代码保存文章时,joomla会删除我的标签< script>
来自我的文章,我还检查了< iframe>
,joomla用<$替换了此标记c $ c>< i-frame> 标签......我真的很困惑,我无法理解什么是错的。
But when I'm trying to save my article with js code, joomla removes my tags <script>
from my article, also I checked with <iframe>
, joomla replaced this tag with <i-frame>
tag... I'm really confused, I can't understand what is wrong.
有人可以帮帮我吗?
谢谢。
推荐答案
实际上,我花了4个小时来找出这个问题并立即得到解决方案。只需登录管理员然后进入系统 - >全局配置,在其下您将看到站点设置,您将找到默认编辑器,选择编辑器 - CodeMirror并保存。之后转到文章,然后添加您的脚本。享受:)
Actually, i spent 4 hrs to find out this issue and got solution now. just login to administrator then go to System-->Global configuration, under that you will see "Site Settings", in that you will find-out "Default Editor", select as "Editor - CodeMirror" and save it. after that go to articles, then add your script. Enjoy :)
这篇关于Joomla 3无法添加< script>到文章的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!