⚠ 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 not working for text fields



vardas

vardas
  • profile picture
  • Member

Posted 12 July 2015 - 17:42 PM

I have selected the ckeditor in the config file as follows:

 

$config['grocery_crud_default_text_editor'] = 'ckeditor';

 

I have some text fields in my database but a text edit box is not appearing on the add/edit pages (e.g: http://www.everythingnow.uk/stores/stores/add). The field 'description' is a mysql TEXT field but no text edit box appears.

 

Does anyone know what I am doing wrong. I have tried changing to the tinymce editor but I get a javascript error that that does not exist.

 


Paul Savostin

Paul Savostin
  • profile picture
  • Member

Posted 12 July 2015 - 22:59 PM

For example, set just only one texteditor field and show all related code. database shema, grocery crud init and all your controller code where you try to operate table with this TEXT field.


XemmeX

XemmeX
  • profile picture
  • Member

Posted 12 November 2015 - 17:17 PM

Hello,

 

No one have any answer for this issue ?

 

I have set a field to TEXT but it is only display as an input text field while it should display with the ckeditor which is set correctly in the CRUD config file, grocery_crud.php :

$config['grocery_crud_default_text_editor'] = 'ckeditor';
$config['grocery_crud_text_editor_type']  = 'full';

This is my function in the controler :
public function about_abc()
{
$crud = new grocery_CRUD();
$crud->set_theme('bootstrap');
$crud->set_table('about_abc');
$crud->set_subject('<i class="fa fa-picture-o"></i> About abc');
$crud->set_field_upload('image','assets/uploads/files');


$state = $crud->getState();


if($state == 'add')
{
$crud->fields('title_en','title_fr','title_es','text_en','text_fr','text_es','image');
$output = $crud->render();
$this->_generate_output('admin_page_view.php',$output);
}
elseif($state == 'edit')
{
$crud->fields('title_en','title_fr','title_es','text_en','text_fr','text_es','image');
$output = $crud->render();
$this->_generate_output('admin_page_view.php',$output);
}
else
{
$crud->columns('title_en','text_en','image');
$output = $crud->render();
$this->_generate_output('admin_page_view.php',$output);
}


}

Help.... please :unsure:

 

 


Paul Savostin

Paul Savostin
  • profile picture
  • Member

Posted 17 November 2015 - 01:27 AM

do like i wrote above and i will try to help u