⚠ 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

How to use CKEditor??



Mohammed Zayan
  • profile picture
  • Member

Posted 30 April 2012 - 12:58 PM

[size=4]I want to use the CKEditor in my site[/size]
[size=4]but I don't know how to use it with grocerycrud.[/size]
[size=4]so, someone tell me, please.[/size]

Mohammed Zayan
  • profile picture
  • Member

Posted 01 May 2012 - 12:29 PM

Dose anyone know how can I do this?

Mohammed Zayan
  • profile picture
  • Member

Posted 08 May 2012 - 08:28 AM

If anyone know please tell me

jcasanova
  • profile picture
  • Member

Posted 08 May 2012 - 20:01 PM


...
$crud = new grocery_CRUD();
$crud->set_table('TableName');
$crud->change_field_type('FieldName', 'text');
$output = $crud->render();
...
...

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 09 May 2012 - 00:02 AM

Hello Mohammed Zayan,

to have a different texteditor than the default is quite easy:

1. delete the folder texteditor (or rename it) at : assets/grocery_crud/texteditor
2. download ckeditor for jquery and add it to assets/grocery_crud and just rename your ckeditor folder to texteditor
3. go to application/libraries/grocery_crud.php at around 1609,1610 line and replace those two line of codes with the required code of the ckeditor:


$this->set_js($this->default_texteditor_path.'/jquery.tinymce.js');
$this->set_js($this->default_javascript_path.'/jquery_plugins/config/jquery.tine_mce.config.js');


and replace it with yours.

I have a long time to use ckeditor (as the licence per website is now [b]$375![/b]) and I don't know how to intergate it with jquery. But you will be at least at the right direction.

Mohammed Zayan
  • profile picture
  • Member

Posted 09 May 2012 - 08:39 AM

Thank you.