Jump to content

[PS1.5] Admin module : wysiwyg field is always invalid !


sami_ch

Recommended Posts

Hi,

I'am writing a simple CRUD module in the admin. In the fields list I have this :

...
                array(
                    'type' => 'textarea',
                    'label' => $this->l('Description:'),
                    'name' => 'description',
                    'autoload_rte' => true,
                    'rows' => 10,
                    'cols' => 100,
                    'required' => true,
                    'lang' => true
                ),   
...

The problem is when I save the content (insert or update) there is a error message : 'description' field is invalid

If I set autoload_rte to false, in the form I have a simple textarea and can save the content. After some tests the problem is HTML tags with the wysiwyg field !

 

What's wrong with autload_rte ?

Thanks :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...