I'm using IMCE with FCKeditor 2.6 and the FCKeditor module 5.x-2.1 on Drupal 5.7.

What I'm experiencing is that the Browse button only reliably appears when the editor is loaded by default on the edit screen.
This setting is found under the "Editor Appearance" options for FCKeditor.
Default state: enabled
Show disable/enable rich text editor toggle: true
Use FCKeditor in a popup window: false

I usually like to have the default state disabled, and use the "show disable/enable" link to toggle the editor on, but by using that setup, the IMCE browse button would only display for the first editor that was enabled. Any other FCKeditor enabled textareas would not display the IMCE browse button.

Enabling the pop up option for FCKeditor resulted in no browse button displaying.

Is this a know bug?

CommentFileSizeAuthor
#3 imce_set_fck.js_.patch1.08 KBufku

Comments

Cory Goodwin’s picture

I have the same issue. Currently I use the "Enable inline image/file insertion into plain textareas:" option in IMCE as a workaround.

Does anyone know how to fix this so IMCE browse will work in FCK when the default state is disabled?

ufku’s picture

Status: Active » Needs review

apply the patch or,
in imce_set_fck.js change the imceInitiateFCK function to this;

function imceInitiateFCK() {
  for (var fck, i = 1; fck = window['oFCK_'+ i]; i++) {
    imceSetFCK.call(fck);
  }
}

This will probably be included in the next bugfix release.

ufku’s picture

Title: IMCE Browse button » No integration into FCKeditors disabled by default
StatusFileSize
new1.08 KB

forgot the patch.

Cory Goodwin’s picture

Status: Needs review » Needs work

When this patch is applied, all ability to browse and upload files is removed regardless of whether or not FCKeditor's default state is enabled or disabled.

ufku’s picture

Status: Needs work » Closed (won't fix)