Active
Project:
Htmlarea
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2007 at 00:39 UTC
Updated:
29 Nov 2007 at 15:31 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| weirderror.jpg | 710.36 KB | dheerajchand |
Comments
Comment #1
JStarcher commentedCheck 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!
Comment #2
Matt-H commentedI 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 (
print $scripts) is in your theme's page.tpl.php template.Comment #3
dninja commentedMy 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.
Comment #4
KermitJr commentedHi,
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!
Comment #5
KermitJr commentedI went in and deleted my cookies and now it works!