Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Discussion:
'HTMLArea.l18N.tooltips' is null or not an object



bronto
Novice

Dec 22, 2004, 12:44 AM


Views: 37449
'HTMLArea.l18N.tooltips' is null or not an object

I get this message when first attempting to use htmlarea 3.0. I downloaded this last week, and have it installed on WindowsXP. I've tried it on a PC using IIS and one with Apache. No luck on either. This is just trying to view the examples. Here's the full error message:

Line: 299
Char: 2
Error: 'HTMLArea.l18N.tooltips' is null or not an object
Code: 0
URL: http://localhost/project/botanybeta/engine/htmlarea/examples/core.html

Thanks.


dandymns
New User

Dec 22, 2004, 2:35 PM


Views: 37399
Re: [bronto] 'HTMLArea.l18N.tooltips' is null or not an object

I've the same problem...Frown


robbrandt
New User

Dec 29, 2004, 11:40 AM


Views: 37309
Re: [dandymns] 'HTMLArea.l18N.tooltips' is null or not an object

For posterity, here's what ended up working for me:

Code
<script type="text/javascript"> 
_editor_url = "../../engine/htmlarea/";
_editor_lang = "en";
</script>
<script type="text/javascript" src="../../engine/htmlarea/htmlarea.js"></script>
<script type="text/javascript">

HTMLArea.loadPlugin("SpellChecker");
HTMLArea.loadPlugin("FullPage");

HTMLArea.loadPlugin("ListType");
HTMLArea.loadPlugin("CharacterMap");

</script>


<script type="text/javascript">

function initDocument() {

var txtKeyword = new HTMLArea("txtKeyword");

txtKeyword.registerPlugin(CharacterMap);
txtKeyword.config.toolbar = [
['italic', 'underline',
'subscript', 'superscript',
'separator', "copy", "cut", "paste", "space", "undo", "redo", "killword", "separator", "htmlmode", "popupeditor"]
];

txtKeyword.config.height = '80px';
txtKeyword.config.width = '360';
//editor.registerPlugin(FullPage);
txtKeyword.generate();
}

HTMLArea.onload = initDocument;

</script>

and then instanciating it here:

Code
<body onload="HTMLArea.init();">


The only thing that's not working is the plugins. Still working on that.

Rob


Alisha
New User

Feb 13, 2005, 11:41 PM


Views: 36936
Re: [robbrandt] 'HTMLArea.l18N.tooltips' is null or not an object

I can't figure out why this is happening but I ended up putting a try/catch around it and it works. It never thows an exceptoin though so I don't know exactly what is going on. Here is what worked for me...


Code
  

if (this.config.statusBar && !noStatus)

{

try

{

this._statusBarTree.innerHTML = HTMLArea.I18N.msg["Path"] + ": "; // clear

}

catch(e)

{

}

for (var i = ancestors.length; --i >= 0;)