VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Sydiom on July 05, 2012, 18:27:57 PM

Title: Text filter not working. Tags stripped out on save.
Post by: Sydiom on July 05, 2012, 18:27:57 PM
Hello

I am using joomla 2.5.1 and Virtuemart 2.

In Joomla Global Configuration I have Editor set to No Editor and Text Filtering for Super user (Me) set to no filtering.

In Virtuemart, on Category Description, I want to add a YouTube movie, but the code strips out on save.

Any idea what i am doing wrong?

Thank you.
Title: Re: Text filter not working. Tags stripped out on save.
Post by: m.maier on August 14, 2012, 17:14:47 PM
I have the same problem here.
Disabled filtering and also removed iframe from list under Extensions/TinyMCE.
In the article manager it works, but not in Virtuemart product descriptions...
Title: Re: Text filter not working. Tags stripped out on save.
Post by: Milbo on August 14, 2012, 21:17:49 PM
Imho you must be administrator
Title: Re: Text filter not working. Tags stripped out on save.
Post by: gain on September 12, 2013, 16:36:30 PM
I have the same problem, but can't solve.

I'm in Adminitrators and Super Users Joomla groups.
I'm in admin group in Virtuemart.
Tried to logout and login after edit permissions.
Tried to select no editor in Joomla configuration.

But the iframe I try to insert in manufacturer description disappear again.

Any suggestion would be appreciated... :(

EDIT: tried to put the iframe in a category description and not works too...
Title: Re: Text filter not working. Tags stripped out on save.
Post by: jenkinhill on September 12, 2013, 17:31:59 PM
http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: Text filter not working. Tags stripped out on save.
Post by: gain on September 12, 2013, 18:08:28 PM
Quote from: jenkinhill on September 12, 2013, 17:31:59 PM
http://forum.virtuemart.net/index.php?topic=79799.0

Joomla 2.5.14
VirtueMart 2.0.22a
PHP 5.3.10
No live url, I'm working in localhost, sry... and I use custom overrides but no Joomla template with VirtueMart styling...

Sry for the inaccuracy...
Title: Re: Text filter not working. Tags stripped out on save.
Post by: Maxim Pishnyak on September 12, 2013, 19:40:37 PM
Maybe Joomla editor issue?
Title: Re: Text filter not working. Tags stripped out on save.
Post by: gain on September 13, 2013, 18:30:08 PM
Seems that JRequest::get('post') cuts off my iframe...

Anyway here is my dirty patch for now:
diff --git a/administrator/components/com_virtuemart/controllers/manufacturer.php b/administrator/components/c
index 45da586..2ad9b8a 100644                                                                                 
--- a/administrator/components/com_virtuemart/controllers/manufacturer.php                                   
+++ b/administrator/components/com_virtuemart/controllers/manufacturer.php                                   
@@ -57,7 +57,9 @@ class VirtuemartControllerManufacturer extends VmController {                               
                /* Load the data */                                                                           
                $data = JRequest::get('post');                                                               
                /* add the mf desc as html code */                                                           
-               $data['mf_desc'] = JRequest::getVar('mf_desc', '', 'post', 'string', JREQUEST_ALLOWHTML );   
+               // my dirty workaround - allow any type of HTML, cause I need to put a YouTube video here (DON'T TRY THIS AT HOME)
+               //$data['mf_desc'] = JRequest::getVar('mf_desc', '', 'post', 'string', JREQUEST_ALLOWHTML ); 
+               $data['mf_desc'] = $_POST['mf_desc'];                                                         
                                                                                                             
                parent::save($data);
        }