Welcome Guest, Not a member yet? Register   Sign In
fckeditor post value
#1

[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.
#2

[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
#3

[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




Theme © iAndrew 2016 - Forum software by © MyBB