'Editor - None' doesn't work in Joomla 1.6..?
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Aug 31, 2010 2:45 am
'Editor - None' doesn't work in Joomla 1.6..?
I want to add 'add to cart' paypal button. I created button, copied and pasted html code created by paypal. 'Editor - None' was selected for a Super User (me), that means that my html code will not be changed when file is saved, but editor still re-formats some HTML when a file is saved. Help please...I use Joomla 1.6
- stutteringp0et
- Joomla! Ace
- Posts: 1389
- Joined: Sat Oct 28, 2006 11:16 pm
- Location: Texas
- Contact:
Re: 'Editor - None' doesn't work in Joomla 1.6..?
Selecting "Editor - None" provides no editor in Beta 8. Maybe you're running into the filter restrictions. You can't (necessarily) paste just any-old-code into an article. To prevent people from injecting malicious scripts into your code, there is a filter in place.
The default blacklist contains the following tags:
'applet', 'body', 'bgsound', 'base', 'basefont', 'embed', 'frame', 'frameset', 'head', 'html', 'id', 'iframe', 'ilayer', 'layer', 'link', 'meta', 'name', 'object', 'script', 'style', 'title', 'xml'
And the following attributes:
'action', 'background', 'codebase', 'dynsrc', 'lowsrc'
If your paypal code contains any of these, it will be stripped.
You can modify the filter to include a whitelist of allowable tags and attributes. Take a look at Content > Article Manager >> Options > Text Filters (tab)
The default blacklist contains the following tags:
'applet', 'body', 'bgsound', 'base', 'basefont', 'embed', 'frame', 'frameset', 'head', 'html', 'id', 'iframe', 'ilayer', 'layer', 'link', 'meta', 'name', 'object', 'script', 'style', 'title', 'xml'
And the following attributes:
'action', 'background', 'codebase', 'dynsrc', 'lowsrc'
If your paypal code contains any of these, it will be stripped.
You can modify the filter to include a whitelist of allowable tags and attributes. Take a look at Content > Article Manager >> Options > Text Filters (tab)
My extensions: http://extensions.joomla.org/profile/pr ... ails/18398
Honk if this signature offends you.
Honk if this signature offends you.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Aug 31, 2010 2:45 am
Re: 'Editor - None' doesn't work in Joomla 1.6..?
Hi, Thank you for replay, but I tried and did not work. Could you please check if I have done it correctly. I performed the following:
1. Article manager->options-> text fiters
2. selected admin level (my level)
3. Changed filer type to White list
4. did not put anything in "filer tag" Should I?
5. put "action" into "filter attribute"
6. saved
Thank I went to the article and added html code from Paypal. After saving the article, HTML for Paypal add to cart was changed by Joomla (1.6). What is I am doing wrong?
Thank you for any feedbacks
1. Article manager->options-> text fiters
2. selected admin level (my level)
3. Changed filer type to White list
4. did not put anything in "filer tag" Should I?
5. put "action" into "filter attribute"
6. saved
Thank I went to the article and added html code from Paypal. After saving the article, HTML for Paypal add to cart was changed by Joomla (1.6). What is I am doing wrong?
Thank you for any feedbacks
- stutteringp0et
- Joomla! Ace
- Posts: 1389
- Joined: Sat Oct 28, 2006 11:16 pm
- Location: Texas
- Contact:
Re: 'Editor - None' doesn't work in Joomla 1.6..?
Yes, filter tag should be filled with the tags used within the code you want to paste.
For example:
The tags here are 'script', 'div', and 'span', so filter-tag should be: script,div,span
Of course, you'll need to examine the code you're inserting and determine the tags you're inserting. Take note of them, and insert them into the filter-tag field separated by commas.
For example:
Code: Select all
<script type="text/javascript">alert('hello');</script>
<div><span>hello</span></div>
Of course, you'll need to examine the code you're inserting and determine the tags you're inserting. Take note of them, and insert them into the filter-tag field separated by commas.
My extensions: http://extensions.joomla.org/profile/pr ... ails/18398
Honk if this signature offends you.
Honk if this signature offends you.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Aug 31, 2010 2:45 am
Re: 'Editor - None' doesn't work in Joomla 1.6..?
Thanks for replay, but It did not help, or maybe my knowledge is not up to this level, but it seems to be a very simple task. I am almost give up on Joomla 1.6, so many problem..
Below is the sample I was trying to add to my artice. What tag and attributes should I defined in whitelist. Thanks
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="hosted_button_id" value="TYN43NLY68PRC">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
Below is the sample I was trying to add to my artice. What tag and attributes should I defined in whitelist. Thanks
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="hosted_button_id" value="TYN43NLY68PRC">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
- stutteringp0et
- Joomla! Ace
- Posts: 1389
- Joined: Sat Oct 28, 2006 11:16 pm
- Location: Texas
- Contact:
Re: 'Editor - None' doesn't work in Joomla 1.6..?
OK, when I paste that code into an article, the only portions that are altered are:
1. the action attribute is stripped - this occurs regardless of the whitelist setting.
2. self closing tags are given the appropriate "/>" ending - this is a good thing.
You'll probably want to file a bug in the tracker for this one.
1. the action attribute is stripped - this occurs regardless of the whitelist setting.
2. self closing tags are given the appropriate "/>" ending - this is a good thing.
You'll probably want to file a bug in the tracker for this one.
My extensions: http://extensions.joomla.org/profile/pr ... ails/18398
Honk if this signature offends you.
Honk if this signature offends you.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Thu Jan 27, 2011 10:30 pm
Re: 'Editor - None' doesn't work in Joomla 1.6..?
still the same bug for me
setting the option to 'no filtering' worked for me
setting the option to 'no filtering' worked for me
- atom
- Joomla! Apprentice
- Posts: 42
- Joined: Mon Sep 19, 2005 3:54 am
Re: 'Editor - None' doesn't work in Joomla 1.6..?
kwkness wrote:still the same bug for me
setting the option to 'no filtering' worked for me
Yes, this worked for me too. Joomla 1.6.x