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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Symlinking to CKeditor
Pages: [1]

Author Topic: Symlinking to CKeditor  (Read 1354 times)

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Symlinking to CKeditor
March 24, 2010, 03:55:31 pm
I have the Wysiwyg module installed (the latest stable version seems to support CKeditor), so rather than have two installs of CKeditor on my site I thought I'd try to symlink to the copy that sits in sites/all/modules/civicrm/packages/ckeditor
However it is throwing an error:

warning: fopen(sites/all/libraries/ckeditor/ckeditor.js): failed to open stream: No such file or directory in /srv/www/vhosts/example.com/httpdocs/sites/all/modules/wysiwyg/editors/ckeditor.inc on line 63.

Nothing obviously wrong.
This looks like it should work - am I missing something obvious?

Update: a minor error in my command line caused the problem. Assuming you are located in the sites/all/libraries folder, the correct command, assuming anyone is interested, is:

ln -s ../modules/civicrm/packages/ckeditor ./ckeditor

it works.
« Last Edit: March 24, 2010, 04:15:41 pm by Upperholme »
Graham Mitchell
http://mc3.coop

hgcrpd

  • Guest
Re: Symlinking to CKeditor
March 28, 2010, 11:16:49 am
I am trying to do something similar, but with an earlier version that uses FCKEditor.  I hacked the fckeditor.php in civicrm/packages/HTML/QuickForm based on this patch: http://issues.civicrm.org/jira/browse/CRM-4238, so now I have it pointing to all of the right FCKEditor libraries, but the problem is that the header for the CiviCRM form page does not load all of the JavaScript libraries that the Wysiwyg module would normally load on non-CiviCRM form pages.  It's basically missing the one line that includes the custom toolbar information, so I can get it to load fine if I set the toolbar profile to Default, but it throws an error if I try to use the toolbar "Wysywig."

So I guess my question is:
1) Does the symbolic link technique also have this error with the custom toolbar profiles stored by Wysiwyg?
2) And if so, do you think the technique will work with previous versions of CiviCRM using FCKEditor?

I may just decide to use the Default profile, since it seems to work fine and is much less of a hassle...

Thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Symlinking to CKeditor

This forum was archived on 2017-11-26.