every use of drupal_get_path() or url() in insert_image.php creates incorrect paths.

the use of drupal_get_path() in htmlarea.module:

case 'uploadimage':
$popup = drupal_get_path('module', 'htmlarea') .'/plugins/UploadImage/popups/insert_image.php';
$output[] = " editor.registerPlugin('$plugin', '$popup');";
break;

outputs an incorrect path.

In short, the insert image plugin does not work at all with drupal 4.7.

as well, this line in insert_image.php:

<script type="text/javascript">
<!--
window.resizeTo(600, 100);

causes the pop up window to be 100 pixels high when it shold be at least 550px.

Comments

mtbman’s picture

Is there any chance of someone who knows what they are doing with this module makeing this work ?

Thanks
mtbman

gordon’s picture

Status: Active » Closed (won't fix)

I am getting rid of this plugin in favor of using img_assist

sopris’s picture

This problem still exist, maybe htmlarea has been abandoned?

You can use img_assist with it, though the filters are never processed during preview. There is an error in the case statement.

As well, if youre tired of seeing htmlarea in the log field simply add the following to line:

old

  if (_htmlarea_bad_browser() || (isset($user->htmlarea_isenabled) && $user->htmlarea_isenabled == 0) || (!isset($user->htmlarea_isenabled) && !variable_get("htmlarea_user_default", true)) || !_htmlarea_get_jsdir()) {
    return false;
  }

new


  if ($name == 'edit-log' || _htmlarea_bad_browser() || (isset($user->htmlarea_isenabled) && $user->htmlarea_isenabled == 0) || (!isset($user->htmlarea_isenabled) && !variable_get("htmlarea_user_default", true)) || !_htmlarea_get_jsdir()) {
    return false;
  }