Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Support Requests:
Newbie needs help getting started.



knichel
New User

Jan 27, 2005, 9:35 AM


Views: 12013
Newbie needs help getting started.

I have downloaded and installed the beta for htmlarea3. I can see all of the examples and they work fine. I am using FireFox on Mac. I just need a bit of assistance getting started. I have an existing site I wish to use HTMLArea with.

What exactly do I need to do do get an existing textarea to use HTMLAREA?

I am looking for the idiots guide here. I tried to use the examples as a template and have had no luck.

For example, could someone please insert what I need in this example of an existing text area...



<HTML>
<BODY>

<TEXTAREA rows=20 cols=80>Test</TEXTAREA>

</BODY>
</HTML>


I am eternally grateful in advance for the help.

--
Mike


reg
Novice

Jan 27, 2005, 3:54 PM


Views: 11993
Re: [knichel] Newbie needs help getting started.

Reference.htm contains about the easiest stuff I've ever seen (and I needed it easy): following is the relevant snippet

Define some global variables. "_editor_url" has to be the absolute URL where HTMLArea resides within your website; as we discussed, this would be /htmlarea/. "_editor_lang" must be the language code in which you want HTMLArea to appear. This defaults to "en" (English); for a list of supported languages, please look into the "lang" subdirectory in the distribution.
  1. <script type="text/javascript"> _editor_url = "/htmlarea/"; _editor_lang = "en";</script>
  2. Include the "htmlarea.js" script: <script type="text/javascript" src="/htmlarea/htmlarea.js"></script>


  3. If you want to change all your <textarea>-s into HTMLArea-s then you can use the simplest way to create HTMLArea:<script type="text/javascript" defer="1"> HTMLArea.replaceAll();</script>

    Note: you can also add the HTMLArea.replaceAll() code to the onload event handler for the body element, if you find it more appropriate.


Reg


luiga
New User

Jan 30, 2005, 2:36 PM


Views: 11893
Re: [reg] Newbie needs help getting started.

Well, it's exactly the same information as the reference.html says, but it doesn't work for me anyways. Any other that has ideas about what might be the problem?

EDIT: Oh, I got it to work now. Actually I had to make a non-absolute path to the htmlarea-directory before it worked. And language can't be set to "se". That screws the editor up completely. Gotta check it out.


(This post was edited by luiga on Jan 31, 2005, 12:29 AM)