--- loncom/html/htmlarea/Attic/reference.html 2004/02/18 08:07:15 1.1 +++ loncom/html/htmlarea/Attic/reference.html 2004/06/01 23:46:10 1.2 @@ -1,5 +1,6 @@ + HTMLArea-3.0 Reference + @@ -116,7 +121,7 @@ other web based WYSIWYG editors are as f
  • It's lightweight, fast loading and can transform a regular textarea into a rich-text editor with a single line of JavaScript.
  • Generates clean, valid HTML.
  • -
  • It's 100% backwards compatible with older or non-supported browsers +
  • It degrades gracefully to older or non-supported browsers (they get the original textarea field).
  • It's free and can be incorporated into any free or commercial program.
  • @@ -145,8 +150,8 @@ href="http://mozilla.org">Mozilla &g Any browser based on Gecko will also work, provided that Gecko version is at least the one included in Mozilla-1.3-Beta (for example, Galeon-1.2.8). However, it is backwards -compatible with other browsers. They will get a regular textarea field +href="http://galeon.sf.net">Galeon-1.2.8). However, it degrades +gracefully to other browsers. They will get a regular textarea field instead of a WYSIWYG editor.

    Can I see an example of what it looks like?

    @@ -171,7 +176,7 @@ today!

    other HTMLArea users?

    You can find out more about HTMLArea and download the latest version on -the HTMLArea +the HTMLArea homepage and you can talk to other HTMLArea users and post any comments or suggestions you have in the <script type="text/javascript" src="/htmlarea/htmlarea.js"></script> - - -

  • If you are using popup dialogs, i.e. for insert table, insert image, - select color, then you need to include the "dialog.js" file. This is - recommended anyway. +
  • 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.
    <script type="text/javascript" src="/htmlarea/dialog.js"></script>
    -
  • + ><script type="text/javascript"> + _editor_url = "/htmlarea/"; + _editor_lang = "en"; +</script> -
  • Include the corresponding language definition file. Note: - internationalization is available only since version 3.0. Check the files - containing "lang" in the distribution ZIP. If your preferred language is - not there yet and you decide to write it, please consider sending it to - us so that it gets included in the next release. -
    <script type="text/javascript" src="/htmlarea/lang/en.js"></script>
    - -
  • Include the stylesheet (be sure to put this inside the HEAD tag): +
  • Include the "htmlarea.js" script:
    <style type="text/css">@import url(/htmlarea/htmlarea.css)</style>
    + ><script type="text/javascript" src="/htmlarea/htmlarea.js"></script>
  • If you want to change all your <textarea>-s into @@ -264,6 +261,12 @@ to do that.

    +

    This section applies to HTMLArea-3.0 release candidate 1 or later; prior +to this version, one needed to include more files; however, now HTMLArea is +able to include other files too (such as stylesheet, language definition +file, etc.) so you only need to define the editor path and load +"htmlarea.js". Nice, eh? ;-)

    +

    I want to change the editor settings, how do I do that?

    While it's true that all you need is one line of JavaScript to create an @@ -289,7 +292,7 @@ config.height = '20

    Important: It's recommended that you add custom features and configuration to a separate file. This will ensure you -that when we release a new official version of HTMLArea you'll have no +that when we release a new official version of HTMLArea you'll have less trouble upgrading it.

    How do I customize the toolbar?

    @@ -345,7 +348,7 @@ These three have the following meaning,

    Important: It's recommended that you add custom features and configuration to a separate file. This will ensure you -that when we release a new official version of HTMLArea you'll have no +that when we release a new official version of HTMLArea you'll have less trouble upgrading it.

    How do I create custom buttons?

    @@ -454,7 +457,7 @@ button.

    Important: It's recommended that you add custom features and configuration to a separate file. This will ensure you -that when we release a new official version of HTMLArea you'll have no +that when we release a new official version of HTMLArea you'll have less trouble upgrading it.

    A complete example

    @@ -507,16 +510,14 @@ config.registerButton("
    © InteractiveTools.com 2002, 2003. +>InteractiveTools.com 2002-2004.
    dynarch.com 2003-2004
    HTMLArea v3.0 developed by Mihai Bazon for -InteractiveTools.com. +href="http://dynarch.com/mishoo/">Mihai Bazon.
    Documentation written by Mihai Bazon.
    - -Last modified on Sun Aug 3 16:11:23 2003 - + Last modified: Wed Jan 28 12:18:23 EET 2004