CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How to override the ckeditor configuration
Pages: [1]

Author Topic: How to override the ckeditor configuration  (Read 2778 times)

stuart

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6
  • MySQL version: 5.0.77
  • PHP version: 5.3
How to override the ckeditor configuration
December 13, 2011, 08:20:03 am
I want to alter the ckeditor configuration, but in such a way that it won't be affected by upgrading CiviCRM.

When configuring the WYSIWYG editor, the CiviCRM help suggests:

Quote
If you are modifying config.js you should first have configured a Custom PHP Path under Global Settings > Directories, and place your modified version in the custom path.

I have configured a custom PHP Path (which I'm already using for other things successfully), and within the custom PHP directory I have mimicked the folder structure leading to the CKEditor configuration:

Quote
packages->ckeditor->config.js

But any amendments I make to my configuration file aren't shown in the CKEditor in CiviCRM (I'm doing a hard-refresh of the page etc.). Am I doing something wrong?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to override the ckeditor configuration
December 14, 2011, 07:24:53 am
I don't think custom_php will work for this case.  After upgrade you will have to overwrite config.js file. I will update the help.

Kurund
Found this reply helpful? Support CiviCRM

stuart

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6
  • MySQL version: 5.0.77
  • PHP version: 5.3
Re: How to override the ckeditor configuration
December 14, 2011, 08:00:34 am
Quote from: Kurund Jalmi on December 14, 2011, 07:24:53 am
I don't think custom_php will work for this case.  After upgrade you will have to overwrite config.js file. I will update the help.

Kurund

Thanks for the quick response. I'll try and set CiviCRM to use the default Drupal WYSIWYG editor instead, and if not, do what you suggest :)

calbasi

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • calbasi.net
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: How to override the ckeditor configuration
October 17, 2014, 01:16:34 am
Quote from: Kurund Jalmi on December 14, 2011, 07:24:53 am
I don't think custom_php will work for this case.  After upgrade you will have to overwrite config.js file. I will update the help.

Kurund

Hi!

It seems you are right, and custom_php don't work for this case BUT then we should correct help info at civicrm/admin/setting/preferences/display?reset=1 , because here you can read:
Quote
NOTE: If you are modifying config.js you should first have configured a Custom PHP Path under Administer > System Settings > Directories, and place your modified version in the custom path.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How to override the ckeditor configuration

This forum was archived on 2017-11-26.