Saving Tinymce WYSIWYG Content to package config
Permalink
Hi all,
I have a problem I can't explain.
I have a dashboard single page in which I have a Tinymce editor. The code is:
I am trying to save the content of the editor in a package config
Nothing is saved at all. I tried with a simple Textarea field and it works just fine but with the Editor not at all.
First I thought maybe the db field type is not right but it's actually the same for the editor and for the value field of the config table.
If anybody had any idea that would be really helpful.
Thanks
I have a problem I can't explain.
I have a dashboard single page in which I have a Tinymce editor. The code is:
I am trying to save the content of the editor in a package config
$co = new Config(); $pkg = Package::getByHandle("my_package"); $co->setPackageObject($pkg); $message = $this->post('message'); $co->save('message', $message);
Nothing is saved at all. I tried with a simple Textarea field and it works just fine but with the Editor not at all.
First I thought maybe the db field type is not right but it's actually the same for the editor and for the value field of the config table.
If anybody had any idea that would be really helpful.
Thanks