SOLVED: Storing Record from Custom Component strips tags
Posted: Sun Feb 10, 2008 4:32 am
Any ideas?
Basically I've written my first component and its working great (or so I thought)! I've imported the editor to the admin area of my components element editing view.
I can updated all the fields including the one I will call "newsletter". The data field is updated through the tinyMCE editor.
If i put any images in the img tag is completely gone by the time it gets stored to the database. I checked the following items:
1) The POST variable actually does have the tags, so tinyMCE is off the hook.
2) I've tried reading out the variables as follows and then immediately dying and the tags are getting to my model
foreach( $_POST as $key=>$val ){
$post[$key] = JRequest::getVar($key, '', 'post', 'string', JREQUEST_ALLOWRAW );
}
The only thing thats really left is either:
if(!$row->check())
or
if (!$row->store())
Any help you guys/gals can provide would be great!
Basically I've written my first component and its working great (or so I thought)! I've imported the editor to the admin area of my components element editing view.
I can updated all the fields including the one I will call "newsletter". The data field is updated through the tinyMCE editor.
If i put any images in the img tag is completely gone by the time it gets stored to the database. I checked the following items:
1) The POST variable actually does have the tags, so tinyMCE is off the hook.
2) I've tried reading out the variables as follows and then immediately dying and the tags are getting to my model
foreach( $_POST as $key=>$val ){
$post[$key] = JRequest::getVar($key, '', 'post', 'string', JREQUEST_ALLOWRAW );
}
The only thing thats really left is either:
if(!$row->check())
or
if (!$row->store())
Any help you guys/gals can provide would be great!