⚠ 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

Problems with installing TinyMCE in Grocery CRUD 1.5.1



iStooge
  • profile picture
  • Member

Posted 17 June 2015 - 12:07 PM

Hi there,

 

i want to use TinyMCE instead of CKEditor with Grocery CRUD.

In the current version of Grocery CRUD there is no TinyMCE installed anymore, right?

 

So i tried to install it by myself. These are my steps:

 

1. I downloaded the jquery package of the current Version of TinyMCE and copied it to /assets/grocery_crud/texteditor

 

2. I modified the lines 2238-2241 in application/libraries/Grocery_Crud.php like this:

case 'tinymce':
$this->set_js_lib($this->default_texteditor_path.'/tiny_mce/tinymce.min.js');
$this->set_js_lib($this->default_texteditor_path.'/tiny_mce/jquery.tinymce.min.js');
$this->set_js_config($this->default_javascript_path.'/jquery_plugins/config/jquery.tine_mce.config.js');
break;

3. I changed the texteditor in the config.php to tinymce.

 

I left the file jquery.tine_mce.config.js as it comes with the current version of grocery crud.

When I now try to modify a database element in the browser there is just no Editor display. It is just empty!

When I change the editor in config.php back to ckeditor the CKEditor is normaly displayed at the same place, were before was nothing!

 

Can anyone help me please?

 

iStooge


iStooge
  • profile picture
  • Member

Posted 30 June 2015 - 08:35 AM

Nobody who can help me :/?


efarfan
  • profile picture
  • Member

Posted 05 July 2015 - 09:17 AM

Hi there, hope it helps:

 

Just use the 3.x version of the tiny_mce  ;)  and do not make changes to application/libraries/Grocery_Crud.php

Also use the content inside "jsscripts" folder in the tinymce_3.5.11_jquery.zip file

 

I've just get registered to answer this question, and hope to help some others  :)

- 4:16am time to sleep  :lol:


chocovo
  • profile picture
  • Member

Posted 15 July 2015 - 11:51 AM

Hello efarfan,

 

Could you explain how to install and use tinymce_jquery?

 

Thank you.


erknrio
  • profile picture
  • Member

Posted 14 October 2015 - 12:08 PM

Hello chocovo

 

We need to accomplish a few steps:

 

1.-Change "grocery_crud_default_text_editor" from ckeditor to tinymce in application/config/grocery_crud.php

//You can choose 'ckeditor','tinymce' or 'markitup'
$config['grocery_crud_default_text_editor'] = 'tinymce';
//You can choose 'minimal' or 'full'
$config['grocery_crud_text_editor_type'] 	= 'full';

2.- Download TinyMCE 3.5.11 jquery package (direct download link).

 

3.- Unzip this file and navigate to tinymce/jscripts/.

 

4.- Upload the contect of the folder "tiny_mce" to assets/grocery_crud/texteditor/.

 

5.- Enjoy tinymce :).

 

You don't need more configuration. The image below is an editor's preview ;) .