in a 1.0 script with this
It runs in the admin end and is supposed to provide an edit session.
Running the script gives me this error:
The script looks like this and I did the import of the editor:"Fatal error: Using $this when not in object context in H:\wwwroot\libraries\joomla\html\editor.php on line 191
"
I understand that the error is fired because of the use of "$this" in the editor.php script, but I do not know how to solve this.jimport( 'joomla.html.editor' );
$editor =& JFactory::getEditor();
?>
function submitbutton(pressbutton) {
var form = document.adminForm;
if (pressbutton == 'cancelcatg') {
submitform( pressbutton );
return;
}
// do field validation
try {
document.adminForm.onsubmit();
}
catch(e){}
if (form.name.value == ""){
alert( "Category must have a title" );
} else {
submitform( pressbutton );
}
}
So I am really looking for suggestions
