editor_url ? - SOLVED!
dheerajchand - June 11, 2007 - 00:39
| Project: | Htmlarea |
| Version: | 5.x-2.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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
| Attachment | Size |
|---|---|
| weirderror.jpg | 710.36 KB |

#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 (
<?phpprint $scripts
?>
#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
I went in and deleted my cookies and now it works!