Project:Htmlarea
Version:5.x-2.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I am getting a weird error when I try and use HTMLArea. It's asking me to set the _editor_url_, but there's nothing in the documentation about how to do so. I have attached a screen shot. Can someone help out?

-dx

AttachmentSize
weirderror.jpg710.36 KB

Comments

#1

Check your theme first and if it is not the problem then here is the fix I made:

Line 729 of htmlarea.module

Change:
drupal_add_js(drupal_get_path('module', 'htmlarea') .'/htmlarea.js', 'module');

to:
drupal_add_js(drupal_get_path('module', 'htmlarea') .'/htmlarea.js', 'module', 'footer');

and that fixed the error for me. But it the editor still does not show up! ARGH!

#2

I had this problem too. I finally fingured out that the problem was that I was using a custom theme that was not printing the $scripts variable. (I think that $scripts is new to 5.0, and not used in 4.x themes.) Thus, the scripts that define things like _editor_url did not initialize, and I got the error. So - make sure that the $scripts variable (

<?php
print $scripts
?>
) is in your theme's page.tpl.php template.

#3

My theme has this but I'm still getting the error message

var _editor_url='/modules/htmlarea/xinha-nightly/'
var _editor_lang='en'

I was wondering if it was because there was a ; missing from the end of the first line.

#4

Hi,

I just installed Drupal 5.3 via Fantastico De Lux, and then htmlarea and xinha.

I've done it on two separate addon domains. It works perfect on one, but I get the _editor_url error on the other. I did the exact same thing on both.

On the one not working, I reset the module, set permissions, etc. And I'm using the default template on both. Someone please help.

Thanks!

EDIT SOLVED: I went in and deleted my cookies and now it works!

#5

Title:editor_url ?» editor_url ? - SOLVED!

I went in and deleted my cookies and now it works!

nobody click here