Text Filters - No Filtering
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Guru
- Posts: 541
- Joined: Fri Oct 15, 2010 7:19 pm
- Location: Canada
Text Filters - No Filtering
I have my Super Administrator account set with the "No Filtering" option in the Article Manager's "Text Filtering" menu however it is still filtering out things like Javascript.
My understanding is that the "No Filtering" option does just that...filters nothing! Am I mistaken on this?
My understanding is that the "No Filtering" option does just that...filters nothing! Am I mistaken on this?
Thanks,
CDNKnights
CDNKnights
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sun Jan 23, 2011 6:17 am
Re: Text Filters - No Filtering
Im a noob at joomla as I just started using this a couple of days ago but here goes:
The editor TinyMCE has script,applet,iframe as prohibited code. You can check this out for yourself on EXTENSIONS>PLUG-IN MANAGER>and the click on Editor-TinyMCE. Now no filtering does mean just that , but because TinyMCE has script prohibited, anytime you put javascript in it erases it. I myself deleted iframe from being prohibited but it does nothing so I don't know. If you while in the Editor-TinyMCE options select clean code on save to 'Never' or 'Front only(if you plan on adding code from backend only)' then you should probably be able to add your javascript although I don't know if it's safe or not to leave it like that. Again I'm a real noob. With no filtering you should have no trouble putting in everything except script/applet/iframe. I'm too lazy to explain more as there is a lot but I've found this out by googling a lot. Google text filtering...TinyMCE + script.. TinyMCE + iframe... and you'll find information. Good luck.
The editor TinyMCE has script,applet,iframe as prohibited code. You can check this out for yourself on EXTENSIONS>PLUG-IN MANAGER>and the click on Editor-TinyMCE. Now no filtering does mean just that , but because TinyMCE has script prohibited, anytime you put javascript in it erases it. I myself deleted iframe from being prohibited but it does nothing so I don't know. If you while in the Editor-TinyMCE options select clean code on save to 'Never' or 'Front only(if you plan on adding code from backend only)' then you should probably be able to add your javascript although I don't know if it's safe or not to leave it like that. Again I'm a real noob. With no filtering you should have no trouble putting in everything except script/applet/iframe. I'm too lazy to explain more as there is a lot but I've found this out by googling a lot. Google text filtering...TinyMCE + script.. TinyMCE + iframe... and you'll find information. Good luck.
-
- Joomla! Guru
- Posts: 541
- Joined: Fri Oct 15, 2010 7:19 pm
- Location: Canada
Re: Text Filters - No Filtering
joomjub,
Unfortunately the issue I'm having has nothing to do with the TinyMCE editor as I use Editor-None. I've checked out the blacklist as well (rootdir/libraries/joomla/filter/filterinput.php) and although it does have a number of things like 'applet', 'body', 'bgsound', and others including the ones you mentioned above. The blacklist however, from what I can tell, does not include anything that removes javascript or php. I've also searched google quite a bit and can't find any solution to this.
Thanks for your reply all the same, but unfortunately this doesn't help me.
Unfortunately the issue I'm having has nothing to do with the TinyMCE editor as I use Editor-None. I've checked out the blacklist as well (rootdir/libraries/joomla/filter/filterinput.php) and although it does have a number of things like 'applet', 'body', 'bgsound', and others including the ones you mentioned above. The blacklist however, from what I can tell, does not include anything that removes javascript or php. I've also searched google quite a bit and can't find any solution to this.
Thanks for your reply all the same, but unfortunately this doesn't help me.
Thanks,
CDNKnights
CDNKnights
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sun Jan 23, 2011 6:17 am
Re: Text Filters - No Filtering
Well I hope some smarty pants comes in and solves your problem. These filtering things are a real pain. I guess everything is a real pain since I've never used joomla. Mess with all your permission settings and global settings..anything that could cause this issue. That's how ive found stuff.. black list, white list, no editor... click,click,click.. you're bound to have a eureka moment. haha. I made an account just to respond to your post, not even when I needed help did i make an account. Man I'm nice. lol. peace.
-
- Joomla! Apprentice
- Posts: 27
- Joined: Wed Dec 28, 2005 4:20 pm
- Location: Greece
- Contact:
Re: Text Filters - No Filtering
@CDNKnights
I found the following help-article on the Net and it worked for me.
http://www.joomtraining.com.au/tutorial ... -joomla-16
I found the following help-article on the Net and it worked for me.
http://www.joomtraining.com.au/tutorial ... -joomla-16
-
- Joomla! Guru
- Posts: 541
- Joined: Fri Oct 15, 2010 7:19 pm
- Location: Canada
Re: Text Filters - No Filtering
@rodotheos@CDNKnights
I found the following help-article on the Net and it worked for me.
http://www.joomtraining.com.au/tutorial ... -joomla-16
Thanks for your reply. All the steps outlined in this tutorial are ones I have already have set.
The odd thing I have discovered is that I am able to put in a full script like the one used to enable tooltips, however something like <a href="javascript:imageProcessor('image-name.png');">Image</a> gets filtered out.
Any ideas?
Thanks,
CDNKnights
CDNKnights
-
- Joomla! Apprentice
- Posts: 6
- Joined: Fri Jul 23, 2010 2:09 pm
Re: Text Filters - No Filtering
I had two environments on 1.7.2 of which one worked (i.e. html tags were saved) and one didn't. I'd never touched the default filters. Changing the SuperUser filter to No Filtering was a workaround to the problem but didn't explain it.
The other factor was my group hierarchy. In one environment (the one that broke), the Super User group was in the Manager tree and the admin user was associated with both the Super User group and the Publisher group. Removing the publisher group from the admin user resolved the filtering problem. In my other environment the Super User group is at the top of the tree, and the admin user is only associated with the Super User group.
The other factor was my group hierarchy. In one environment (the one that broke), the Super User group was in the Manager tree and the admin user was associated with both the Super User group and the Publisher group. Removing the publisher group from the admin user resolved the filtering problem. In my other environment the Super User group is at the top of the tree, and the admin user is only associated with the Super User group.
-
- Joomla! Apprentice
- Posts: 7
- Joined: Fri Jan 13, 2012 2:35 am
Re: Text Filters - No Filtering
Anybody fixed the issue of text-filters for joomla 1.7.x?
I am still not able to embed javascript tag in articles..please help
I am still not able to embed javascript tag in articles..please help
-
- Joomla! Guru
- Posts: 541
- Joined: Fri Oct 15, 2010 7:19 pm
- Location: Canada
Re: Text Filters - No Filtering
@mayurab
I don't have any issues with Javascript in 1.7 - What JS are you trying to use?
I don't have any issues with Javascript in 1.7 - What JS are you trying to use?
Thanks,
CDNKnights
CDNKnights
-
- Joomla! Apprentice
- Posts: 7
- Joined: Fri Jan 13, 2012 2:35 am
Re: Text Filters - No Filtering
I need to use simple <script language="javascript">...code...</script> tags in articles. Every time tags not saved....
-
- Joomla! Guru
- Posts: 541
- Joined: Fri Oct 15, 2010 7:19 pm
- Location: Canada
Re: Text Filters - No Filtering
Alright, that shouldn't be an issue at all, I have a number of sites currently running that type of js in articles.
Are you using an editor like TimyMCE or "No Editor"?
Are you using the Super Admin with "No Filtering" set?
Are you using an editor like TimyMCE or "No Editor"?
Are you using the Super Admin with "No Filtering" set?
Thanks,
CDNKnights
CDNKnights
-
- Joomla! Apprentice
- Posts: 7
- Joined: Fri Jan 13, 2012 2:35 am
Re: Text Filters - No Filtering
Yes I am using JCE (TinyMCE)
Also have super admin with "No filtering"
Also have super admin with "No filtering"
-
- Joomla! Apprentice
- Posts: 7
- Joined: Fri Jan 13, 2012 2:35 am
Re: Text Filters - No Filtering
@CDNKnights
I am using Joomla Version 1.7.1.
modified global configuration
modified tinymce / JCE configurations
modified article -> options->text filtering
ect
I am using Joomla Version 1.7.1.
modified global configuration
modified tinymce / JCE configurations
modified article -> options->text filtering
ect
-
- Joomla! Guru
- Posts: 541
- Joined: Fri Oct 15, 2010 7:19 pm
- Location: Canada
Re: Text Filters - No Filtering
I don't suppose you'd want to PM me a login so I can take a look?
Thanks,
CDNKnights
CDNKnights
-
- Joomla! Apprentice
- Posts: 7
- Joined: Fri Jan 13, 2012 2:35 am
Re: Text Filters - No Filtering
I am sorry but I really can't. I can not find the option in TineyMCE plugin manager for
Code Cleanup on Startup → Off
Code Cleanup on Save → Always (TinyMCE since Joomla! version 1.5.12)
Do Not Clean HTML Entities → Yes
Am I using wrong version ?
Code Cleanup on Startup → Off
Code Cleanup on Save → Always (TinyMCE since Joomla! version 1.5.12)
Do Not Clean HTML Entities → Yes
Am I using wrong version ?
-
- Joomla! Guru
- Posts: 541
- Joined: Fri Oct 15, 2010 7:19 pm
- Location: Canada
Re: Text Filters - No Filtering
No worries, definitely understand not wanting to give that kinda thing out.
To be honest, I don't use TinyMCE - I always use Editor - None.
Try changing your editor to None and inset your Javascript. If that works, then you'll know it's an issue with TinyMCE stripping it. From the settings you've told me about I'm guessing your issue is with the editor, not your filter settings.
Give that a try and let me know how you make out.
To be honest, I don't use TinyMCE - I always use Editor - None.
Try changing your editor to None and inset your Javascript. If that works, then you'll know it's an issue with TinyMCE stripping it. From the settings you've told me about I'm guessing your issue is with the editor, not your filter settings.
Give that a try and let me know how you make out.
Thanks,
CDNKnights
CDNKnights
-
- Joomla! Fledgling
- Posts: 2
- Joined: Tue Feb 28, 2012 4:44 pm
Re: Text Filters - No Filtering
I had this same problem. I noticed the <script> tag was in the TinyMCE editor settings but that wasn't my problem so I left it in there... Then I realized that I really didn't want an editor at all. I turned it off: Global > Editor: None.
Now my code looks good and isn't stripped, ie, <?php blah; ?> is left alone.
NOTE: TinyMCE in Plugins > Prohibited elements has <script> in it by default in 1.7.
Now my code looks good and isn't stripped, ie, <?php blah; ?> is left alone.
NOTE: TinyMCE in Plugins > Prohibited elements has <script> in it by default in 1.7.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Mar 07, 2012 9:06 am
Re: Text Filters - No Filtering
This Work for me... (joomla 2.5)
Global Configuration > Site
Default Editor > Editor - None
Global Configuration > Text Filters
Administrator > No Filtering
Super Users > No Filtering
Global Configuration > Site
Default Editor > Editor - None
Global Configuration > Text Filters
Administrator > No Filtering
Super Users > No Filtering
-
- Joomla! Intern
- Posts: 97
- Joined: Sun Dec 30, 2007 8:36 pm
Re: Text Filters - No Filtering
I'm having the same issue, and I'm about to pull my hair out! Why can't The bloody Text Filter work like it is supposed to? What a piece of crap!
Anyway, I'm trying to insert some non-standard code. It is constantly stripped out. I tried to use [ur=http://extensions.joomla.org/extensions ... tent/5051l]Sourcerer[/url], but the code still gets stripped.
Any idea how to get the below code to not be stripped?
Anyway, I'm trying to insert some non-standard code. It is constantly stripped out. I tried to use [ur=http://extensions.joomla.org/extensions ... tent/5051l]Sourcerer[/url], but the code still gets stripped.
Any idea how to get the below code to not be stripped?
Code: Select all
{JFBCGraph title=6 Reasons You Need a Website | The Laughable News} {JFBCGraph description=In this day and age, trying to run a business without a website is senseless. For around $500 per year, you can have a great website designed, hosted, and managed. It will become a great selling tool, and likely bring in an assortment of potential advertisers.} {JFBCGraph image=http://www.mysite.com/images/easyblog_images/1/General_Images/website.jpg}
- baijianpeng
- Joomla! Guru
- Posts: 516
- Joined: Mon Mar 20, 2006 3:17 pm
- Location: China
- Contact:
Re: Text Filters - No Filtering
I have the same problem: already set to "No Filtering" for both Super User and Administrator in Global Configuration, but the Joomla editor (even the "None" eidtor) still keep removing/stripping my code!
What the hell why this happened? Why the Joomla core team can not make this filtering rules work?
What the hell why this happened? Why the Joomla core team can not make this filtering rules work?
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Jun 13, 2016 11:29 pm
Re: Text Filters - No Filtering
So, folks. 3 years passed. ver 3.4 here. But the problem is still there? TinyMCE stripping javascript despite all of the settings directing not to?
-
- I've been banned!
- Posts: 13639
- Joined: Sun Jul 05, 2009 3:30 am
- Location: Canberra, Australia
Re: Text Filters - No Filtering
Most of the WYSIWYG editors (TinyMCE, CodeMirror, JCE) do that. I use "No editor" if I'm trying to add Javascript snippets to my articles.halx wrote:So, folks. 3 years passed. ver 3.4 here. But the problem is still there? TinyMCE stripping javascript despite all of the settings directing not to?
FYI, J! 3.5.1 is out and it's worth upgrading to that for the extra benefits that it adds to the WYSIWYG editors. It won't solve the problem you're having, but it's worth the upgrade for the other features that are added.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Jun 13, 2016 11:29 pm
Re: Text Filters - No Filtering
Thanks. But for some reason after setting None, I'm still seeing TinyMCE. Upgraded to 3.5.1. as well.
UPD. Created a separate user with None Editor. It works now. Thanks again!
UPD. Created a separate user with None Editor. It works now. Thanks again!