⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

CKeditor textarea error, no save multiples <p>



Fausto
  • profile picture
  • Member

Posted 03 September 2016 - 08:59 AM

Hello, i have one problem with CKeditor.
 
In my table i have one field tupo_somos(type TEXT) and When the textarea code is like this:
<p>just one line</p>
the record save and updates just fine. But when I add another line - resulting in following code:
<p>just one line</p>
<p>another line</p>
nothing happens.

 

My Controller is:

 public function tienda(){
    try{
      $crud = new grocery_CRUD();

      $crud->set_theme('datatables');
      $crud->set_table('tupo');
      $crud->set_subject('Tienda');
      $crud->display_as('tupo_somos','¿Quiénes Somos?');

      $crud->display_as('tupo_somos1','Foto 1 - ¿Quiénes Somos? (280 x 395 px)');
      $crud->display_as('tupo_somos2','Foto 2 - ¿Quiénes Somos? (280 x 395 px)');
      $crud->set_field_upload('tupo_somos1','assets/uploads/tienda/');
      $crud->set_field_upload('tupo_somos2','assets/uploads/tienda/');
     

      $crud->columns('tupo_somos1','tupo_somos2');
      $crud->unset_delete();
      $crud->unset_add();
      $crud->unset_read();

      $output = $crud->render();

      $data=array();
      $data['titulo']='Nuestra Tienda';
      $output->data=$data;

      $this->_example_output($output);

    }catch(Exception $e){
      show_error($e->getMessage().' --- '.$e->getTraceAsString());
    }
  }

Fausto
  • profile picture
  • Member

Posted 03 September 2016 - 21:20 PM

Please help me :(