I am using this WYSWIG editor. This editor is displayed on a modal bootstrap.
<form action="<?php echo base_url('dashboard/submit_post'); ?>" method="POST" role="form" enctype="multipart/form-data">
<div class="form-group">
<label for="post_title">Post Title</label>
<input type="text" class="form-control" id="post_title" name="post_title" placeholder="Enter a title">
</div>
<div class="form-group">
<label for="post_content">Post Content</label>
<textarea name="post_content" id="post_content" cols="30" rows="3" class="form-control wyswig-editor"></textarea>
</div>
This submit_post function is as follows.
public function submit_post()
{
$this->process_post();
}
private function process_post()
{
$clean_post_title = $this->input->post('post_title');
$clean_post_content = $this->input->post('post_content');
$data = array(
'post_title' => $clean_post_title,
'post_content' => $clean_post_content
);
print_r($data);
}
, , . . , - WYSWIG, wyswig, . , wyswig "" post_content, , wyswig Hello2 ", - Hello. , , , . , .