Hi

I am looking at adding IMCE support to this module, and have come across afew issues.

First in the array in quicktags.module I added:

	'edimage' => array(
      'name' => 'image 2',
      'accesskey' => 'i',
      'close' => FALSE,
	   'location' => 'IMCE',
      'icon' => $path .'ed_image.png',
    ),
  );

This could be probably expanded with "module_exists" to add an option to work without IMCE if it don't exist, but I will leave that for later.

in quicktags.module I have added:

function quicktagsImceFinish(path, w, h, s, imceWin) {
  imceWin.close();
  edButtons[i].tagStart = '<img src="'+ path +'", width="'+ w +'", height="'+ h +'"> </img>';
  edInsertTag(i);
}

function IMCE() {
	window.open('/drupal-5.1/imce/browse', 'quicktags', 'width=640, height=480, resizable=1');
}

The imce window comes up, but selecting an image is useless as I am having trouble on the edButtons and edInsert tag lines. I know they are wrong. I just borrowed them from another bug report. that was adding image support in a different way.

Secondly, the window open line is ugly. Is there any way to open "imce/browse" using a general expression instead of writing the full path?

help?

Comments

naheemsays’s picture

oops, that second bit of code is in quicttags.js, not quicktags.module.

Sorry.

I only need to know how to print to the tex area, as everything else more or less works.

duaelfr’s picture

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

This version of quicktags is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.