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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Drupal - FCK Editor / IMCE Module not working under CiviCRM
Pages: [1]

Author Topic: Drupal - FCK Editor / IMCE Module not working under CiviCRM  (Read 6869 times)

gibsonoliver

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 2
    • Northbridge Digital
Drupal - FCK Editor / IMCE Module not working under CiviCRM
February 04, 2009, 03:29:22 am
Hi There

Under a Drupal installation I'm using FCK Editor as the site text editor. This links with the IMCE Image module which allows for image uploads.

On non CiviCRM pages when using FCK Editor / Insert or Edit Image / a Browse Server button is available which allows for image uploads.
However on CiviCRM pages (i.e. Create HTML Mailing) the Browse Server Button in FCK Editor is unavailable.

Any help would be greatly appreciated as I cant see why it would be unavailable

Oliver
Oliver Gibson, Northbridge Digital

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: Drupal - FCK Editor / IMCE Module not working under CiviCRM
February 04, 2009, 03:57:24 am
Quote
On non CiviCRM pages when using FCK Editor / Insert or Edit Image / a Browse Server button is available which allows for image uploads.
However on CiviCRM pages (i.e. Create HTML Mailing) the Browse Server Button in FCK Editor is unavailable.

Drupal and CiviCRM uses separate FCK Editor. In CiviCRM we don't allow image uploading, hence no Browse Server Button.

Kurund
Found this reply helpful? Support CiviCRM

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: Drupal - FCK Editor / IMCE Module not working under CiviCRM
February 09, 2009, 02:39:10 pm
If you're handy with a code editor and want to hack CiviCRM to use Drupal's FCK instead of its own, check out the patch here:

http://issues.civicrm.org/jira/browse/CRM-3002

No idea if this will work on 2.1 or not, so be prepared to debug.

Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

rchadwick

  • Guest
Re: Drupal - FCK Editor / IMCE Module not working under CiviCRM
February 13, 2009, 09:46:56 pm
Hello,

I have 2 questions.
1. Why is uploading of graphic files not allowed in CiviCRM?
2. Is this a feature that will be available in the future?

Thank,
Ron

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: Drupal - FCK Editor / IMCE Module not working under CiviCRM
February 17, 2009, 12:05:46 pm
Ron:

I think we should allow uploading graphic from local machine only and not browsing server. Can you file an issue for this in jira.

thanx,

Kurund
Found this reply helpful? Support CiviCRM

jrosen

  • Guest
Re: Drupal - FCK Editor / IMCE Module not working under CiviCRM
June 23, 2009, 10:44:26 pm
I have a patch for using the FCKEditor from Drupal and also for including the IMCE "Browse Server" button within FCKEditor.

My patch is based on the one for ImageAssist in http://civicrm.org/node/556  (but I find mine easier to configure).

Before I contribute my patch, is there a way to use an external module or hook_xxxx function in CiviCRM to override or add a WSYWIG editor in CiviCRM?  I have implemented my patch (which patches the civicrm/packages/HTML/QuickForm/fckeditor.php file) and don't want to have to re-apply it everytime I upgrade CiviCRM, so I want to be able to "bolt-it-on" as an external plug-in or module. 

Please let me know and I will contribute back.

Thanks,
Jason

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Drupal - FCK Editor / IMCE Module not working under CiviCRM
June 24, 2009, 04:27:04 am
An idea -

if we build a small Drupal module or configuration which means that Drupal's Wysiwyg editor is applied to CiviCRM's textareas as appropriate, then we simply need to disable CiviCRM's FCKeditor to make both systems play nicely together.

This would require there to be identifiable selectors on the fields which need to be transformed (likely already present) and might require some special consideration with regard to the contact details placeholders in CiviMail.

Just a thought (for now)
@xurizaemon ● www.fuzion.co.nz

jrosen

  • Guest
Re: Drupal - FCK Editor / IMCE Module not working under CiviCRM
June 24, 2009, 10:29:00 am
I would rather tell CiviCRM about the new editor.  Having Drupal override the textareas in CiviCRM seems more problematic to me.  I think CiviCRM should handle it's own input fields.  But if there is a way to register a new editor with CiviCRM and give it the config info and then let CiviCRM construct the textareas with the config info, I am OK with that.

Alternatively, is there a way to override a CiviCRM method externally via a plugin or Drupal module?  All of my patched code resides in a single method call.

jrosen

  • Guest
Re: Drupal - FCK Editor / IMCE Module not working under CiviCRM
July 25, 2009, 04:19:25 pm
I submitted a patch to the CiviCRM JIRA issue tracker: http://issues.civicrm.org/jira/browse/CRM-4238

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Drupal - FCK Editor / IMCE Module not working under CiviCRM

This forum was archived on 2017-11-26.