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 - Discussion:
Error: HTMLArea.I18N has no properties


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.

 


pt2002
Novice

Dec 11, 2004, 6:40 AM

Post #1 of 5 (4088 views)
Shortcut
Error: HTMLArea.I18N has no properties Can't Post

Hi
I get this error, htmlarea.js line 297 from cvs in Firefox 1.0.

Any hints?

Greetings


(This post was edited by pt2002 on Dec 11, 2004, 6:53 AM)


chrisTheMan
Novice

Dec 11, 2004, 10:11 AM

Post #2 of 5 (4071 views)
Shortcut
Re: [pt2002] Error: HTMLArea.I18N has no properties [In reply to] Can't Post

Maybe this thread helps:

http://www.htmlarea.com/forum/htmlArea_3_(beta)_C4/htmlArea_v3.0_-_Beta_Release_F14/Re%3A_%5BRim%5D_HTMLArea_3_Loading_on_Refresh_Error_P34068/


doktor
New User

Dec 23, 2004, 4:31 AM

Post #3 of 5 (3906 views)
Shortcut
Re: [pt2002] Error: HTMLArea.I18N has no properties [In reply to] Can't Post

hi, I have the same problem, I've just checked out the CVS source

I have previous htmlarea from cvs working, but I hacked it too

so, for now I can tell you where's the problem: your language file IS NOT loaded and though, the HTMLArea.I18N object does not exist

check line 95:
HTMLArea.loadScript(_editor_url + "lang/" + _editor_lang + ".js");
the path looks ok, though the file is not loaded, I'm working on that...still thinking, what is depends on, because it never worked for me....


doktor
New User

Dec 23, 2004, 6:12 AM

Post #4 of 5 (3894 views)
Shortcut
Re: [pt2002] Error: HTMLArea.I18N has no properties [In reply to] Can't Post

OK, I found the solution for current CVS without messing the htmlarea.js of course
I checked the examples in the source and found that most of them DOES NOT work at all. However fully-loaded worked, so I checked it's source and I found out, that this new version (my previous one was checked out in the Summer) requires init() to be executed...

SO, here's my solution, my config allows multiple areas to be loaded:


header:

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


function loadAreas(area_id) {
if (HTMLArea == null || HTMLArea.I18N == null || HTMLArea.I18N.tooltips == null) {
setTimeout("loadAreas('"+area_id+"')",50);
} else {
var config = new HTMLArea.Config();

// config.pageStyle.... configure your styles here
// config.toolbar ... configure your toolbar if you want
HTMLArea.replace(area_id,config);
}
}
</script>


then body:

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


bottom of the page, before </body>

Code
<script type="text/javascript" defer="defer"> 
loadAreas("textarea_to_replace_id");
</script>

of course, you might put that function in some loop, javascript or something
I create that bootom part in php, so I have multiple calls of loadAreas

So far, it works!


rorso
New User

Jan 3, 2005, 10:45 AM

Post #5 of 5 (3740 views)
Shortcut
Re: [doktor] Error: HTMLArea.I18N has no properties [In reply to] Can't Post

This might sound silly, but where do I place the "registerPlugin()" functions in your code? There is no "editor".

I tried the following without success:

Code
... 
HTMLArea.loadPlugin("TableOperations");
...
function loadAreas(area_id) {
...
var editor = new HTMLArea();
var config = editor.Config;

editor.registerPlugin(TableOperations);
...

instead of

Code
... 
var config = new HTMLArea.Config();
...


It always breaks at the "registerPlugin" with "TableOperations" is not defined.

It does not help much calling ("TableOperations") or ('TableOperations')

 
 
 


Search for (options)