CodeIgniter Forums
fckeditor post value - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: fckeditor post value (/thread-44154.html)



fckeditor post value - El Forum - 08-05-2011

[eluser]Sudz[/eluser]
hello all,

I have implemented the fckeditor by referring

http://ellislab.com/forums/viewthread/59265/P0/

but i didnt get the value of form_fckeditor in controller after submitting form.
please help.


fckeditor post value - El Forum - 08-05-2011

[eluser]Nicholas Bello[/eluser]
I would need to see your code but my guess is you're not looking for the correct posted value. Per the example you referenced the FCKeditor is instantiated like this:

Code:
***** USAGE ******

// e.g. 1
echo form_fckeditor('textareaName', $value );


// e.g. 2
$data = array(
              'name'        => 'textareaName2',
              'id'          => 'textareaName2',
              'toolbarset'  => 'Advanced',
              'basepath'    => '/fckeditor/',
              'width'       => '100%',
              'height'      => '200'
    );

echo form_fckeditor( $data );

Pay close attention to this line:

Code:
echo form_fckeditor('textareaName', $value );


The value 'textareaName' (or whatever you changed it to) is what will be posted to your controller. To get the value of the FCKeditor textarea do something like this:

Code:
$fckValue = $this->input->post('textareaName',TRUE);

If that doesn't solve the issue please post the code you are using.

Nick


fckeditor post value - El Forum - 08-07-2011

[eluser]Sudz[/eluser]
I have used like this
Code:
// e.g. 2
$data = array(
              'name'        => 'content',
              'id'          => 'textareaName2',
              'toolbarset'  => 'Advanced',
              'basepath'    => '/fckeditor/',
              'width'       => '100%',
              'height'      => '200'
    );

echo form_fckeditor( $data );

// in controller

echo $this->input->post('content',TRUE);
here it does not print anything