Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Bug Reports & Fixes:
HTMLArea.L18N.tooltips is null or not an object



Aneesha
New User

Feb 7, 2005, 5:08 PM


Views: 26458
HTMLArea.L18N.tooltips is null or not an object

Hi

Customizing the the toolbar causes error: HTMLArea.L18N.tooltips is null or not an object

Code is attached.
Attachments: customOLT.html (1.88 KB)


Alisha
New User

Feb 13, 2005, 11:37 PM


Views: 26373
Re: [Aneesha] HTMLArea.L18N.tooltips is null or not an object

I ran into the same problem. I ended up just putting a try/ catch around it (see below). I still dont know why this is happening but this fix has worked for me.




Code
   

try


{

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

}

catch(e)

{

}




vigna
Novice

Feb 14, 2005, 7:24 AM


Views: 26356
Re: [Alisha] HTMLArea.L18N.tooltips is null or not an object

Same here. I tried to load this configuration file just after loading htmlarea.js:

htmlAreaConfig = new HTMLArea.Config();
htmlAreaConfig.pageStyle = 'body { background-color: white }'

The only result is a JavaScript error:

Error: HTMLArea.I18N has no properties
Source File: http://sliver/demo/htmlarea/htmlarea.js
Line: 309

Apparently, I18N is not set up properly. This happens even after HTMLArea.init()

From the server logs, htmlarea/lang/en.js has been loaded properly.


Vetroff
New User

Feb 15, 2005, 7:48 AM


Views: 26339
probably the same issue

 
in prevous versions of HTMLAREA i used it like this


Code
	 

var config = new HTMLArea.Config();

config.toolbar = [

["bold", "italic", "underline", "separator","justifyleft", "justifycenter", "justifyright", "justifyfull", "separator", "htmlmode","separator","popupeditor"]];



HTMLArea.replaceAll(config);

it worked just fine

now i'm trying to do like this


Code
	 

HTMLArea.init();

var config = new HTMLArea.Config();

config.toolbar = [

["bold", "italic", "underline", "separator","justifyleft", "justifycenter", "justifyright", "justifyfull", "separator", "htmlmode","separator","popupeditor"]];

HTMLArea.onload=HTMLArea.replaceAll(config);

But it makes the following error

Error: HTMLArea.I18N has no properties
Source File: http://vcms/js/editor/htmlarea.js
Line: 309

please help me out


vigna
Novice

Feb 15, 2005, 8:13 AM


Views: 26330
Re: [Vetroff] probably the same issue

Apparently the problem is that HTMLArea is extremely fragile and sensitive to call order. You should

1) Load htmlarea.js
2) Load plugins
3) Call HTMLArea.init()
4) Set HTMLArea.onload to a function call that creates configs and editors. DO NOT CREATE CONFIGS OUTSIDE THIS FUNCTION CALL.

This way it works here.


Vetroff
New User

Feb 15, 2005, 10:20 AM


Views: 26324
Re: [vigna] probably the same issue

Sorry still can't get i made the following
<SCRIPT>

function init1(){
var config = new HTMLArea.Config();
config.toolbar = [
["bold", "italic", "underline", "separator","justifyleft", "justifycenter", "justifyright", "justifyfull", "separator", "htmlmode","separator","popupeditor"]];
HTMLArea.replaceAll(config);
}

HTMLArea.init();
HTMLArea.onload=init1();
</SCRIPT>

and still Error: HTMLArea.I18N has no properties
Source File: http://vcms/js/editor/htmlarea.js
Line: 309

line 309 is if (typeof HTMLArea.I18N.tooltips!= "undefined") {
btn[0] = HTMLArea.I18N.tooltips;