I'm running drupal 5.1 and htmlarea 5.x-2.0-beta3. everything appears to be enabled and settings appears to be fine, but when i go to any edit page or create content page, the textarea is just a normal area. any thoughts?

Comments

dojohnso’s picture

oh, also have Xinha .92beta in a folder named "xinha" under the htmlarea folder (htmlarea/xinha/)

marxav’s picture

I have a the same problem. I placed Xinha in a separate folder under htmlarea. When I edit a page, I get this pop up window:
WARNING: _editor_url is not set! You should set this variable to the editor files path; it should preferably be an absolute path, like in '/htmlarea/', but it can be relative if you prefer. Further we will try to load the editor files correctly but we'll probably fail.

ffunky’s picture

Another one to the list. my drupal installation is not in the root of my htdocs, however. Maybe that's the issue?

chip’s picture

I've got this problem too, including the "_edutir_url is not set" popup.

I compared on a site where htmlarea is working, and found that the following bits are present in the working site, but do not appear in the page of the broken site:

<script type="text/javascript">Drupal.extend({ settings: { "htmlarea": { "base": "/", "path": "/sites/default/modules/htmlarea/xihna", "use_xinha": true, "killWordOnPaste": 0, "pageStyle": "body { background-color: #fff; font-family: arial,helvetica,sans-serif; }", "toolbar": [ [ "formatblock", "bold", "italic", "underline", "strikethrough", "separator", "subscript", "superscript", "separator", "linebreak" ], [ "linebreak", "justifyleft", "justifycenter", "justifyright", "justifyfull", "separator", "orderedlist", "unorderedlist", "outdent", "indent", "separator", "createlink", "insertimage", "inserttable", "htmlmode", "popupeditor", "showhelp", "about" ] ], "formatblock": { "\x26mdash; format \x26mdash;": "", "Section Heading": "h3", "Section Sub-Heading": "h4", "Normal": "p", "Formated": "pre" } } } });</script>
<script type="text/javascript">var _editor_url='/sites/default/modules/htmlarea/xihna/'
var _editor_lang='en'

</script>
chip’s picture

This may be a theme-related issue. When I switched from the custom bluemarine-based theme to garland, the problem went away.

MikeyGYSE’s picture

So what needs to be done to a custom theme to allow HTMLArea to show up, it's loading the javascript files on BOTH themes, but only shows on garland, not my custom theme. I need a WYSIWYG style editor before I can make the site public, it's the final step before adding content so it's of paramount importance. Is there something which needs adding to the theme? The error IE is throwing up is that "HTMLArea is not defined".

manoloka’s picture

Got the same problem here;

WARNING: _editor_url is not set!

Helpsssss

gordon’s picture

If Xinha is working in Garland, then your custom theme is not interting variables into the page.

Check the top and the bottom, as the actual loading of Xinha is done at the bottom of the page.

chomatz’s picture

finally got my htmlarea module to work... fixed my Gagarin theme by editing the page.tpl.php file and adding <?php print $closure ?> just before the </body> tag...

gordon’s picture

Status: Active » Fixed

I think that this is to do with the theme, and not htmlarea.

Anonymous’s picture

Status: Fixed » Closed (fixed)
jsruok’s picture

<?php print $closure ?>

didn't do the trick for me (as it existed in the theme already).

What worked was adding

 <?php print $scripts ?>

in the head tag.

Theme was for drupal 4.7 but I'm using 5.x if that has anything to do with it.

jbuck’s picture

Priority: Critical » Normal
Status: Closed (fixed) » Closed (duplicate)

I have the same problem with "_editor_url is not set". I've spent hours researching this problem with no solution. Actually I've found several, but they either don't work or are abstruse. The above posting #4 doesn't say where the script snippet comes from, so what use is it?

If _editor_url is not set, where the heck do you set it? It shouldn't be this difficult. (Overall I've found Drupal convoluted and surly).