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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Using images in FCK editor (or Tiny MCE)
Pages: [1]

Author Topic: Using images in FCK editor (or Tiny MCE)  (Read 2832 times)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Using images in FCK editor (or Tiny MCE)
September 07, 2009, 06:00:40 am
Hello,

Does the image editor with FCK in CiviCRM editor allow image/file uploading?  If not, what is the best way to I attach images to - for example - event description pages.

Thanks a lot,
Michael

PS.  Can switch to Tiny MCE if that offers a solution.
PPS.  I had a look at this blog post (http://civicrm.org/node/556) and it isn't quite what I need - I don't want to connect Drupal and Civi's image editors - just get the CiviCRM one working.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Using images in FCK editor (or Tiny MCE)
September 08, 2009, 01:40:17 am
tinymce doesn't allow this (not sure about fck)

I have to upload the image through my CMS, remember the URL, and paste it.

Ken

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Using images in FCK editor (or Tiny MCE)
September 08, 2009, 01:52:25 am
indeed it doesn't - in case it helps any of your clients - you can check this video - from memory it explains how we use IMCE to upload images and then adding url for them to civimail - http://vimeo.com/5848425 (v low volume warning)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Using images in FCK editor (or Tiny MCE)
September 08, 2009, 01:33:18 pm
Good thinking batman - thanks Peter and Chris and Ken for tips.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

keithwbloom

  • Guest
Re: Using images in FCK editor (or Tiny MCE)
October 06, 2009, 07:40:50 am
I am using a standalone version of 3.0 (actually I am integrating it with an alternative CMS to Drupal or Joomla) and found it very easy to enable the FCKEditor image upload capabilities by modifying the /packages/fckeditor/fckconfig.js and /packages/fckeditor/editor/filemanager/php/config.php files.

In /packages/fckeditor/fckconfig.js file the following lines were modified:

@line 285: FCKConfig.ImageBrowser = false ; change to FCKConfig.ImageBrowser = true ;
@line 300: FCKConfig.ImageUpload = false ; change to FCKConfig.ImageUpload = true ;

In /packages/fckeditor/editor/filemanager/php/config.php file, the following lines were modified:

@line 30: $Config['Enabled'] = false ; change to $Config['Enabled'] = true ;
note: make sure you set permissions on this file to be 755 or more restrictive when you enable config file.
@line 34: $Config['UserFilesPath'] = '/userfiles/' ; change to $Config['UserFilesPath'] = '/[relative file path to image directory where you want uploads stored]/' ;
@line 40: $Config['UserFilesAbsolutePath'] = '' ; change to $Config['UserFilesAbsolutePath'] = '/[absolute file path to image directory where you want uploads stored]' ;
@line 65: $Config['ChmodOnUpload'] = 0777 ; change to $Config['ChmodOnUpload'] = 0755 ;
@line 69: $Config['ChmodOnFolderCreate'] = 0777 ; change to $Config['ChmodOnFolderCreate'] = 0755 ;

Pay heed to the commented notes and warnings associated with the lines to be modified in the files.

FWIW, there are a host of image editor tools in the FCKeditor once you get it enabled, more stuff to configure, oh yeah!

Keith














dhelsten

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
Re: Using images in FCK editor (or Tiny MCE)
October 10, 2009, 05:30:46 pm
keithwbloom:  I tried your changes but they don't seem to be working for me.  I assume that there will be an upload tab when I click the image button in fckeditor.  I'm not seeing that, only the ability to link to urls.  Am I not clicking the right button, any ideas?

dhelsten

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
Re: Using images in FCK editor (or Tiny MCE)
October 12, 2009, 08:25:51 am
It started working several hours later.  It must have been a cache issue.  Great tip!

keithwbloom

  • Guest
Re: Using images in FCK editor (or Tiny MCE)
November 20, 2009, 07:07:45 am
dhelsten -

Glad it worked, I have run into the same problem subsequently and I have now been looking for a "clear cached files" procedure to remedy. Did you happen to look into the same since last post?

Keith

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Using images in FCK editor (or Tiny MCE)

This forum was archived on 2017-11-26.