HTMLarea editor not displaying

dojohnso - March 1, 2007 - 16:40
Project:Htmlarea
Version:5.x-2.0-beta3
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

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?

#1

dojohnso - March 1, 2007 - 17:02

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

#2

marxav - March 21, 2007 - 20:27

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.

#3

ffunky - March 27, 2007 - 14:49

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

#4

chip - April 1, 2007 - 20:37

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>

#5

chip - April 1, 2007 - 20:41

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

#6

MikeyGYSE - April 8, 2007 - 21:05

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".

#7

manoloka - April 20, 2007 - 16:01

Got the same problem here;

WARNING: _editor_url is not set!

Helpsssss

#8

gordon - April 23, 2007 - 04:37

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.

#9

chomatz - May 17, 2007 - 05:36

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...

#10

gordon - May 18, 2007 - 04:22
Status:active» fixed

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

#11

Anonymous - June 1, 2007 - 04:31
Status:fixed» closed

#12

jsruok - June 8, 2007 - 15:46

<?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.

#13

jbuck - December 21, 2007 - 14:33
Priority:critical» normal
Status: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).

 
 

Drupal is a registered trademark of Dries Buytaert.