[eluser]chandrajatnika[/eluser]
I use FCKeditor to create an article data, and I use validation rule on CI 1.7 for a better form validation but I have a problem..
When I\'ve submit a form and if one of required field is still empty then the page still on the edit form. But the content of my
FCKeditor have convert like has been filter with htmlspecialchars.
Code:
include \"js/fckeditor/fckeditor.php\";
$oFCKeditor = new FCKeditor(\'article_content\');
$oFCKeditor->BasePath = base_url().\'js/fckeditor/\' ;
$oFCKeditor->Value = $this->input->post(\'article_content\') ? $this->input->post(\'article_content\') : @$data->article_content;
$oFCKeditor->Width = 800;
$oFCKeditor->Height = 400;
$oFCKeditor->Create();
Field \'article_content\' is required on my validation rule, same as another field like \'article_title\', if \'article_title\' is empty then the page will not change, but field \'article_content\' is filled with hmtlspecialchars result filter.