htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

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


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


Aneesha
New User

Feb 7, 2005, 5:08 PM

Post #1 of 6 (25566 views)
Shortcut
HTMLArea.L18N.tooltips is null or not an object Can't Post

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

Post #2 of 6 (25481 views)
Shortcut
Re: [Aneesha] HTMLArea.L18N.tooltips is null or not an object [In reply to] Can't Post

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

Post #3 of 6 (25464 views)
Shortcut
Re: [Alisha] HTMLArea.L18N.tooltips is null or not an object [In reply to] Can't Post

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

Post #4 of 6 (25447 views)
Shortcut
probably the same issue [In reply to] Can't Post

 
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

Post #5 of 6 (25438 views)
Shortcut
Re: [Vetroff] probably the same issue [In reply to] Can't Post

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

Post #6 of 6 (25432 views)
Shortcut
Re: [vigna] probably the same issue [In reply to] Can't Post

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;

 
 
 


Search for (options)