Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Joomla 3 can't add <script> to article

Joomla version: Joomla! 3.3.6 Stable [ Ember ] 01-October-2014 02:00 GMT

I want add js script to one my article. I'm using TinyMCE editor to edit article.

In TinyMCE plugin field Prohibited Elements I filled with dummy text, now it contains "cms123", I removed "script,applet,iframe".

I checked Global Configurations -> Text Filters for Super Users I have set it "No Filtering".

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.

Can anybody help me?

Thanks.

like image 341
vladimir Avatar asked Nov 10 '14 08:11

vladimir


1 Answers

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 :)

like image 147
Shan Mugam Avatar answered Oct 23 '22 13:10

Shan Mugam