Index: openacs-4/packages/acs-templating/www/resources/htmlarea/dialog.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/dialog.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/dialog.js 4 Mar 2004 18:32:10 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/dialog.js 30 Jan 2005 16:13:26 -0000 1.2 @@ -1,72 +1,74 @@ -// Though "Dialog" looks like an object, it isn't really an object. Instead -// it's just namespace for protecting global symbols. - -function Dialog(url, action, init) { - if (typeof init == "undefined") { - init = window; // pass this window object by default - } - if (document.all) { // here we hope that Mozilla will never support document.all - var value = - showModalDialog(url, init, -// window.open(url, '_blank', - "resizable: no; help: no; status: no; scroll: no"); - if (action) { - action(value); - } - } else { - return Dialog._geckoOpenModal(url, action, init); - } -}; - -Dialog._parentEvent = function(ev) { - if (Dialog._modal && !Dialog._modal.closed) { - Dialog._modal.focus(); - // we get here in Mozilla only, anyway, so we can safely use - // the DOM version. - ev.preventDefault(); - ev.stopPropagation(); - } -}; - -// should be a function, the return handler of the currently opened dialog. -Dialog._return = null; - -// constant, the currently opened dialog -Dialog._modal = null; - -// the dialog will read it's args from this variable -Dialog._arguments = null; - -Dialog._geckoOpenModal = function(url, action, init) { - var dlg = window.open(url, "ha_dialog", - "toolbar=no,menubar=no,personalbar=no,width=10,height=10," + - "scrollbars=no,resizable=no"); - Dialog._modal = dlg; - Dialog._arguments = init; - - // capture some window's events - function capwin(w) { - w.addEventListener("click", Dialog._parentEvent, true); - w.addEventListener("mousedown", Dialog._parentEvent, true); - w.addEventListener("focus", Dialog._parentEvent, true); - }; - // release the captured events - function relwin(w) { - w.removeEventListener("focus", Dialog._parentEvent, true); - w.removeEventListener("mousedown", Dialog._parentEvent, true); - w.removeEventListener("click", Dialog._parentEvent, true); - }; - capwin(window); - // capture other frames - for (var i = 0; i < window.frames.length; capwin(window.frames[i++])); - // make up a function to be called when the Dialog ends. - Dialog._return = function (val) { - if (val && action) { - action(val); - } - relwin(window); - // capture other frames - for (var i = 0; i < window.frames.length; relwin(window.frames[i++])); - Dialog._modal = null; - }; -}; +// htmlArea v3.0 - Copyright (c) 2003-2005 dynarch.com +// 2002-2003 interactivetools.com, inc. +// This copyright notice MUST stay intact for use (see license.txt). +// +// Portions (c) dynarch.com, 2003-2004 +// +// A free WYSIWYG editor replacement for - - -

Where can I find out more info, download the latest version and talk to -other HTMLArea users?

- -

You can find out more about HTMLArea and download the latest version on -the HTMLArea -homepage and you can talk to other HTMLArea users and post any comments -or suggestions you have in the HTMLArea forum.

- -

Keyboard shortcuts

- -

The editor provides the following key combinations:

- - - -

Installation

- -

How do I add HTMLArea to my web page?

- -

It's easy. First you need to upload HTMLArea files to your website. -Just follow these steps.

- -
    -
  1. Download the latest version from the htmlArea - homepage.
  2. -
  3. Unzip the files onto your local computer (making sure to maintain the - directory structure contained in the zip).
  4. -
  5. Create a new folder on your website called /htmlarea/ (make sure it's - NOT inside the cgi-bin).
  6. -
  7. Transfer all the HTMLArea files from your local computer into the - /htmlarea/ folder on your website.
  8. -
  9. Open the example page /htmlarea/example.html with your browser to make - sure everything works.
  10. -
- -

Once htmlArea is on your website all you need to do is add some -JavaScript to any pages that you want to add WYSIWYG editors to. Here's how -to do that.

- -
    - -
  1. Include the "htmlarea.js" script: -
    <script type="text/javascript" src="/htmlarea/htmlarea.js"></script>
    -
  2. - -
  3. 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. -
    <script type="text/javascript" src="/htmlarea/dialog.js"></script>
    -
  4. - -
  5. 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>
    - -
  6. Include the stylesheet (be sure to put this inside the HEAD tag): -
    <style type="text/css">@import url(/htmlarea/htmlarea.css)</style>
    -
  7. - -
  8. 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.

    - -

    A different approach, if you have more than one textarea and only want - to change one of them, is to use HTMLArea.replace("id") -- - pass the id of your textarea. Do not use the - name attribute anymore, it's not a standard solution!

    - -
- -

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 -htmlArea WYSIWYG editor, you can also specify more config settings in the -code to control how the editor works and looks. Here's an example of some of -the available settings:

- -
var config = new HTMLArea.Config(); // create a new configuration object
-                                    // having all the default values
-config.width = '90%';
-config.height = '200px';
-
-// the following sets a style for the page body (black text on yellow page)
-// and makes all paragraphs be bold by default
-config.pageStyle =
-  'body { background-color: yellow; color: black; font-family: verdana,sans-serif } ' +
-  'p { font-width: bold; } ';
-
-// the following replaces the textarea with the given id with a new
-// HTMLArea object having the specified configuration
-HTMLArea.replace('id', config);
- -

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 -trouble upgrading it.

- -

How do I customize the toolbar?

- -

Using the configuration object introduced above allows you to completely -control what the toolbar contains. Following is an example of a one-line, -customized toolbar, much simpler than the default one:

- -
var config = new HTMLArea.Config();
-config.toolbar = [
-  ['fontname', 'space',
-   'fontsize', 'space',
-   'formatblock', 'space',
-   'bold', 'italic', 'underline']
-];
-HTMLArea.replace('id', config);
- -

The toolbar is an Array of Array objects. Each array in the toolbar -defines a new line. The default toolbar looks like this:

- -
config.toolbar = [
-[ "fontname", "space",
-  "fontsize", "space",
-  "formatblock", "space",
-  "bold", "italic", "underline", "separator",
-  "strikethrough", "subscript", "superscript", "separator",
-  "copy", "cut", "paste", "space", "undo", "redo" ],
-		
-[ "justifyleft", "justifycenter", "justifyright", "justifyfull", "separator",
-  "insertorderedlist", "insertunorderedlist", "outdent", "indent", "separator",
-  "forecolor", "hilitecolor", "textindicator", "separator",
-  "inserthorizontalrule", "createlink", "insertimage", "inserttable", "htmlmode", "separator",
-  "popupeditor", "separator", "showhelp", "about" ]
-];
- -

Except three strings, all others in the examples above need to be defined -in the config.btnList object (detailed a bit later in this -document). The three exceptions are: 'space', 'separator' and 'linebreak'. -These three have the following meaning, and need not be present in -btnList:

- - - -

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 -trouble upgrading it.

- -

How do I create custom buttons?

- -

By design, the toolbar is easily extensible. For adding a custom button -one needs to follow two steps.

- -

1. Register the button in config.btnList.

- -

For each button in the toolbar, HTMLArea needs to know the following -information:

- -

You need to provide all this information for registering a new button -too. The button ID can be any string identifier and it's used when -defining the toolbar, as you saw above. We recommend starting -it with "my-" so that it won't clash with the standard ID-s (those from -the default toolbar).

- -

Register button example #1

- -
// get a default configuration
-var config = new HTMLArea.Config();
-// register the new button using Config.registerButton.
-// parameters:        button ID,   tooltip,          image,           textMode,
-config.registerButton("my-hilite", "Highlight text", "my-hilite.gif", false,
-// function that gets called when the button is clicked
-  function(editor, id) {
-    editor.surroundHTML('<span class="hilite">', '</span>');
-  }
-);
- -

An alternate way of calling registerButton is exemplified above. Though -the code might be a little bit larger, using this form makes your code more -maintainable. It doesn't even needs comments as it's pretty clear.

- -

Register button example #2

- -
var config = new HTMLArea.Config();
-config.registerButton({
-  id        : "my-hilite",
-  tooltip   : "Highlight text",
-  image     : "my-hilite.gif",
-  textMode  : false,
-  action    : function(editor, id) {
-                editor.surroundHTML('<span class="hilite">', '</span>');
-              }
-});
- -

You might notice that the "action" function receives two parameters: -editor and id. In the examples above we only used the -editor parameter. But it could be helpful for you to understand -both:

- - - -

2. Inserting it into the toolbar

- -

At this step you need to specify where in the toolbar to insert the -button, or just create the whole toolbar again as you saw in the previous -section. You use the button ID, as shown in the examples of customizing the -toolbar in the previous section.

- -

For the sake of completion, following there are another examples.

- -

Append your button to the default toolbar

- -
config.toolbar.push([ "my-hilite" ]);
- -

Customized toolbar

- -
config.toolbar = [
-  ['fontname', 'space',
-   'fontsize', 'space',
-   'formatblock', 'space',
-   'separator', 'my-hilite', 'separator', 'space', // here's your button
-   'bold', 'italic', 'underline', 'space']
-];
- -

Note: in the example above our new button is -between two vertical separators. But this is by no means required. You can -put it wherever you like. Once registered in the btnList (step 1) your custom button behaves just like a default -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 -trouble upgrading it.

- -

A complete example

- -

Please note that it is by no means necessary to include the following -code into the htmlarea.js file. On the contrary, it might not work there. -The configuration system is designed such that you can always customize the -editor from outside files, thus keeping the htmlarea.js file -intact. This will make it easy for you to upgrade your HTMLArea when we -release a new official version. OK, I promise it's the last time I said -this. ;)

- -
// All our custom buttons will call this function when clicked.
-// We use the buttonId parameter to determine what button
-// triggered the call.
-function clickHandler(editor, buttonId) {
-  switch (buttonId) {
-    case "my-toc":
-      editor.insertHTML("<h1>Table Of Contents</h1>");
-      break;
-    case "my-date":
-      editor.insertHTML((new Date()).toString());
-      break;
-    case "my-bold":
-      editor.execCommand("bold");
-      editor.execCommand("italic");
-      break;
-    case "my-hilite":
-      editor.surroundHTML("<span class=\"hilite\">", "</span>");
-      break;
-  }
-};
-
-// Create a new configuration object
-var config = new HTMLArea.Config();
-
-// Register our custom buttons
-config.registerButton("my-toc",  "Insert TOC", "my-toc.gif", false, clickHandler);
-config.registerButton("my-date", "Insert date/time", "my-date.gif", false, clickHandler);
-config.registerButton("my-bold", "Toggle bold/italic", "my-bold.gif", false, clickHandler);
-config.registerButton("my-hilite", "Hilite selection", "my-hilite.gif", false, clickHandler);
-
-// Append the buttons to the default toolbar
-config.toolbar.push(["linebreak", "my-toc", "my-date", "my-bold", "my-hilite"]);
-
-// Replace an existing textarea with an HTMLArea object having the above config.
-HTMLArea.replace("textAreaID", config);
- - -
-
© InteractiveTools.com 2002, 2003. -
-HTMLArea v3.0 developed by Mihai Bazon for -InteractiveTools.com. -
-Documentation written by Mihai Bazon. -
- -Last modified on Sun Aug 3 16:11:23 2003 - - - + + + +HTMLArea-3.0 Reference + + + + + + + + + + + + + +

HTMLArea-3.0 Documentation

+ +
+ + This documentation contains valid information, but is outdated in the + terms that it does not covers all the features of HTMLArea. A new + documentation project will be started, based on LaTeX. + +
+ + +

Introduction

+ +

What is HTMLArea?

+ +

HTMLArea is a free WYSIWYG editor replacement for <textarea> +fields. By adding a few simple lines of JavaScript code to your web page +you can replace a regular textarea with a rich text editor that lets your +users do the following:

+ + + +

Some of the interesting features of HTMLArea that set's it apart from +other web based WYSIWYG editors are as follows:

+ + + +

Is it really free? What's the catch?

+ +

Yes! It's really free. You can use it, modify it, distribute it with your +software, or do just about anything you like with it.

+ +

What are the browser requirements?

+ +

HTMLArea requires Internet Explorer >= 5.5 +(Windows only), or Mozilla >= 1.3-Beta on any platform. +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 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?

+ +

Just make sure you're using one of the browsers mentioned above and see +below.

+ +
+ +
+ +

Where can I find out more info, download the latest version and talk to +other HTMLArea users?

+ +

You can find out more about HTMLArea and download the latest version on +the HTMLArea +homepage and you can talk to other HTMLArea users and post any comments +or suggestions you have in the HTMLArea forum.

+ +

Keyboard shortcuts

+ +

The editor provides the following key combinations:

+ + + +

Installation

+ +

How do I add HTMLArea to my web page?

+ +

It's easy. First you need to upload HTMLArea files to your website. +Just follow these steps.

+ +
    +
  1. Download the latest version from the htmlArea + homepage.
  2. +
  3. Unzip the files onto your local computer (making sure to maintain the + directory structure contained in the zip).
  4. +
  5. Create a new folder on your website called /htmlarea/ (make sure it's + NOT inside the cgi-bin).
  6. +
  7. Transfer all the HTMLArea files from your local computer into the + /htmlarea/ folder on your website.
  8. +
  9. Open the example page /htmlarea/examples/core.html with your browser to make + sure everything works.
  10. +
+ +

Once htmlArea is on your website all you need to do is add some +JavaScript to any pages that you want to add WYSIWYG editors to. Here's how +to do that.

+ +
    + +
  1. 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">
    +   _editor_url = "/htmlarea/";
    +   _editor_lang = "en";
    +</script>
    + +
  2. Include the "htmlarea.js" script: +
    <script type="text/javascript" src="/htmlarea/htmlarea.js"></script>
    +
  3. + +
  4. 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.

    + +

    A different approach, if you have more than one textarea and only want + to change one of them, is to use HTMLArea.replace("id") -- + pass the id of your textarea. Do not use the + name attribute anymore, it's not a standard solution!

    + +
+ +

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 +htmlArea WYSIWYG editor, you can also specify more config settings in the +code to control how the editor works and looks. Here's an example of some of +the available settings:

+ +
var config = new HTMLArea.Config(); // create a new configuration object
+                                    // having all the default values
+config.width = '90%';
+config.height = '200px';
+
+// the following sets a style for the page body (black text on yellow page)
+// and makes all paragraphs be bold by default
+config.pageStyle =
+  'body { background-color: yellow; color: black; font-family: verdana,sans-serif } ' +
+  'p { font-width: bold; } ';
+
+// the following replaces the textarea with the given id with a new
+// HTMLArea object having the specified configuration
+HTMLArea.replace('id', config);
+ +

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 less +trouble upgrading it.

+ +

How do I customize the toolbar?

+ +

Using the configuration object introduced above allows you to completely +control what the toolbar contains. Following is an example of a one-line, +customized toolbar, much simpler than the default one:

+ +
var config = new HTMLArea.Config();
+config.toolbar = [
+  ['fontname', 'space',
+   'fontsize', 'space',
+   'formatblock', 'space',
+   'bold', 'italic', 'underline']
+];
+HTMLArea.replace('id', config);
+ +

The toolbar is an Array of Array objects. Each array in the toolbar +defines a new line. The default toolbar looks like this:

+ +
config.toolbar = [
+[ "fontname", "space",
+  "fontsize", "space",
+  "formatblock", "space",
+  "bold", "italic", "underline", "separator",
+  "strikethrough", "subscript", "superscript", "separator",
+  "copy", "cut", "paste", "space", "undo", "redo" ],
+
+[ "justifyleft", "justifycenter", "justifyright", "justifyfull", "separator",
+  "insertorderedlist", "insertunorderedlist", "outdent", "indent", "separator",
+  "forecolor", "hilitecolor", "textindicator", "separator",
+  "inserthorizontalrule", "createlink", "insertimage", "inserttable", "htmlmode", "separator",
+  "popupeditor", "separator", "showhelp", "about" ]
+];
+ +

Except three strings, all others in the examples above need to be defined +in the config.btnList object (detailed a bit later in this +document). The three exceptions are: 'space', 'separator' and 'linebreak'. +These three have the following meaning, and need not be present in +btnList:

+ + + +

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 less +trouble upgrading it.

+ +

How do I create custom buttons?

+ +

By design, the toolbar is easily extensible. For adding a custom button +one needs to follow two steps.

+ +

1. Register the button in config.btnList.

+ +

For each button in the toolbar, HTMLArea needs to know the following +information:

+ +

You need to provide all this information for registering a new button +too. The button ID can be any string identifier and it's used when +defining the toolbar, as you saw above. We recommend starting +it with "my-" so that it won't clash with the standard ID-s (those from +the default toolbar).

+ +

Register button example #1

+ +
// get a default configuration
+var config = new HTMLArea.Config();
+// register the new button using Config.registerButton.
+// parameters:        button ID,   tooltip,          image,           textMode,
+config.registerButton("my-hilite", "Highlight text", "my-hilite.gif", false,
+// function that gets called when the button is clicked
+  function(editor, id) {
+    editor.surroundHTML('<span class="hilite">', '</span>');
+  }
+);
+ +

An alternate way of calling registerButton is exemplified above. Though +the code might be a little bit larger, using this form makes your code more +maintainable. It doesn't even needs comments as it's pretty clear.

+ +

Register button example #2

+ +
var config = new HTMLArea.Config();
+config.registerButton({
+  id        : "my-hilite",
+  tooltip   : "Highlight text",
+  image     : "my-hilite.gif",
+  textMode  : false,
+  action    : function(editor, id) {
+                editor.surroundHTML('<span class="hilite">', '</span>');
+              }
+});
+ +

You might notice that the "action" function receives two parameters: +editor and id. In the examples above we only used the +editor parameter. But it could be helpful for you to understand +both:

+ + + +

2. Inserting it into the toolbar

+ +

At this step you need to specify where in the toolbar to insert the +button, or just create the whole toolbar again as you saw in the previous +section. You use the button ID, as shown in the examples of customizing the +toolbar in the previous section.

+ +

For the sake of completion, following there are another examples.

+ +

Append your button to the default toolbar

+ +
config.toolbar.push([ "my-hilite" ]);
+ +

Customized toolbar

+ +
config.toolbar = [
+  ['fontname', 'space',
+   'fontsize', 'space',
+   'formatblock', 'space',
+   'separator', 'my-hilite', 'separator', 'space', // here's your button
+   'bold', 'italic', 'underline', 'space']
+];
+ +

Note: in the example above our new button is +between two vertical separators. But this is by no means required. You can +put it wherever you like. Once registered in the btnList (step 1) your custom button behaves just like a default +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 less +trouble upgrading it.

+ +

A complete example

+ +

Please note that it is by no means necessary to include the following +code into the htmlarea.js file. On the contrary, it might not work there. +The configuration system is designed such that you can always customize the +editor from outside files, thus keeping the htmlarea.js file +intact. This will make it easy for you to upgrade your HTMLArea when we +release a new official version. OK, I promise it's the last time I said +this. ;)

+ +
// All our custom buttons will call this function when clicked.
+// We use the buttonId parameter to determine what button
+// triggered the call.
+function clickHandler(editor, buttonId) {
+  switch (buttonId) {
+    case "my-toc":
+      editor.insertHTML("<h1>Table Of Contents</h1>");
+      break;
+    case "my-date":
+      editor.insertHTML((new Date()).toString());
+      break;
+    case "my-bold":
+      editor.execCommand("bold");
+      editor.execCommand("italic");
+      break;
+    case "my-hilite":
+      editor.surroundHTML("<span class=\"hilite\">", "</span>");
+      break;
+  }
+};
+
+// Create a new configuration object
+var config = new HTMLArea.Config();
+
+// Register our custom buttons
+config.registerButton("my-toc",  "Insert TOC", "my-toc.gif", false, clickHandler);
+config.registerButton("my-date", "Insert date/time", "my-date.gif", false, clickHandler);
+config.registerButton("my-bold", "Toggle bold/italic", "my-bold.gif", false, clickHandler);
+config.registerButton("my-hilite", "Hilite selection", "my-hilite.gif", false, clickHandler);
+
+// Append the buttons to the default toolbar
+config.toolbar.push(["linebreak", "my-toc", "my-date", "my-bold", "my-hilite"]);
+
+// Replace an existing textarea with an HTMLArea object having the above config.
+HTMLArea.replace("textAreaID", config);
+ + +
+
© InteractiveTools.com 2002-2004. +
dynarch.com 2003-2004
+HTMLArea v3.0 developed by Mihai Bazon. +
+Documentation written by Mihai Bazon. +
+ Last modified: Wed Jan 28 12:18:23 EET 2004 + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/release-notes.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/release-notes.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/release-notes.html 4 Mar 2004 18:32:10 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/release-notes.html 30 Jan 2005 16:13:26 -0000 1.2 @@ -1,82 +1,182 @@ - - - - HTMLArea-3.0-beta release notes - - - - -

HTMLArea-3.0-beta release notes

- -

This release was compiled on Aug 11, 2003 [21:30] GMT.

- - -

Changes since 3.0-Alpha:

- - - -

Rationale for Beta

- -

Why was this released as "Beta"? The code is quite stable and it - didn't deserve a "Beta" qualification. However, there are some things - left to do for the real 3.0 version. These things will not affect the - API to work with HTMLArea, in other words, you can install the Beta - right now and then install the final release without modifying your - code. That's if you don't modify HTMLArea itself. ;-)

- -

To-Do before 3.0 final

- -
    - -
  1. We should use a single popup interface. Currently there are two: - dialog.js and popupwin.js; dialog.js emulates modal dialogs, which - sucks when you want to open "select-color" from another popup and not - from the editor itself. Very buggy in IE. We should probably use only - modeless dialogs (that is, popupwin.js).
  2. - -
  3. Internationalization for the SpellChecker plugin.
  4. - -
  5. Internationalization for the TableOperations plugin.
  6. - -
  7. People who sent translations are invited to re-iterate through - their work and make it up-to-date with lang/en.js which is the main - lang file for HTMLArea-3.0. Some things have changed but not all - translations are updated.
  8. - -
  9. Documentation.
  10. - -
- - -
-
Mihai Bazon
- - -Last modified on Sun Aug 10 19:31:39 2003 - - - - - - + + + + + HTMLArea-3.0-RC3 release notes + + + + + +

HTMLArea-3.0-RC3 release notes

+ +

This release was compiled on Jan , 2005 [23:43] GMT.

+ +

Changes since 3.0-RC2b:

+ + + + +

Changes since 3.0-Beta:

+ + + +

I don't have the power to go through the bug +system at SourceForge + now. Some of the bugs reported there may be fixed; I'll update + their status, some other time. If you reported bugs there and now + find them to be fixed, please let me know.

+ +

3.0-Beta

+ +

Changes since 3.0-Alpha:

+ + +
+
Mihai Bazon
+ + Last modified: Wed Mar 31 19:18:26 EEST 2004 + + + + + Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-templating/www/resources/htmlarea/test.cgi'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/2-areas.cgi =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/2-areas.cgi,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/2-areas.cgi 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,16 @@ +#! /usr/bin/perl -w + +use strict; +use CGI; + +my $cgi = new CGI; +my $text1 = $cgi->param('text1'); +my $text2 = $cgi->param('text2'); + +print "Content-type: text/html\n\n"; + +print "

You submitted:

"; +print ""; +print ""; +print ""; +print "
text1text2
$text1$text2
"; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/2-areas.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/2-areas.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/2-areas.html 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,162 @@ + + + + + Example with 2 HTMLAreas in the same form + + + + + + +

Example with 2 HTMLAreas in the same form

+ +
+ + +
+ + + +
+ + + +
+ + +
+ +
+
Mihai Bazon
+ + Last modified: Wed Jan 28 11:10:40 EET 2004 + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/character_map.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/character_map.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/character_map.html 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,30 @@ + + + Test of CharacterMap plugin + + + + + + + + + + + +

Test of DynamicCSS plugin

+ + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/context-menu.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/context-menu.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/context-menu.html 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,95 @@ + + + Test of ContextMenu plugin + + + + + + + + + + + +

Test of ContextMenu plugin

+ + + + +
+
Mihai Bazon
+ + Last modified: Wed Jan 28 11:10:29 EET 2004 + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/core.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/core.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/core.html 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,184 @@ + + +Example of HTMLArea 3.0 + + + + + + + + + + + + + + + + +

HTMLArea 3.0

+ +

A replacement for TEXTAREA elements. © InteractiveTools.com, 2003-2004.

+ +
+ + + +

+ + + + + +submit + + + +

+ + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/css.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/css.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/css.html 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,90 @@ + + + Test of CSS plugin + + + + + + + + + + + +

Test of FullPage plugin

+ + + +
+
Mihai Bazon
+ + Last modified: Wed Jan 28 11:10:16 EET 2004 + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/custom.css =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/custom.css,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/custom.css 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,29 @@ +body { background-color: #234; color: #dd8; font-family: tahoma; font-size: 12px; } + +a:link, a:visited { color: #8cf; } +a:hover { color: #ff8; } + +h1 { background-color: #456; color: #ff8; padding: 2px 5px; border: 1px solid; border-color: #678 #012 #012 #678; } + +/* syntax highlighting (used by the first combo defined for the CSS plugin) */ + +pre { margin: 0px 1em; padding: 5px 1em; background-color: #000; border: 1px dotted #02d; border-left: 2px solid #04f; } +.code { color: #f5deb3; } +.string { color: #00ffff; } +.comment { color: #8fbc8f; } +.variable-name { color: #fa8072; } +.type { color: #90ee90; font-weight: bold; } +.reference { color: #ee82ee; } +.preprocessor { color: #faf; } +.keyword { color: #ffffff; font-weight: bold; } +.function-name { color: #ace; } +.html-tag { font-weight: bold; } +.html-helper-italic { font-style: italic; } +.warning { color: #ffa500; font-weight: bold; } +.html-helper-bold { font-weight: bold; } + +/* info combo */ + +.quote { font-style: italic; color: #ee9; } +.highlight { background-color: yellow; color: #000; } +.deprecated { text-decoration: line-through; color: #aaa; } Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/dynamic.css =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/dynamic.css,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/dynamic.css 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,45 @@ +p { + FONT-FAMILY: Arial, Helvetica; + FONT-SIZE: 9pt; + FONT-WEIGHT: normal; + COLOR: #000000; +} + +p.p1 { + FONT-FAMILY: Arial, Helvetica; + FONT-SIZE: 11pt; + FONT-WEIGHT: normal; + COLOR: #000000; +} + +p.p2 { + FONT-FAMILY: Arial, Helvetica; + FONT-SIZE: 13pt; + FONT-WEIGHT: normal; + COLOR: #000000; +} + +div { + FONT-FAMILY: Arial, Helvetica; + FONT-SIZE: 9pt; + FONT-WEIGHT: bold; + COLOR: #000000; +} + +div.div1 { + FONT-FAMILY: Arial, Helvetica; + FONT-SIZE: 11pt; + FONT-WEIGHT: bold; + COLOR: #000000; +} + +div.div2 { + FONT-FAMILY: Arial, Helvetica; + FONT-SIZE: 13pt; + FONT-WEIGHT: bold; + COLOR: #000000; +} + +.quote { font-style: italic; color: #ee9; } +.highlight { background-color: yellow; color: #000; } +.deprecated { text-decoration: line-through; color: #aaa; } Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/dynamic_css.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/dynamic_css.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/dynamic_css.html 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,44 @@ + + + Test of CSS plugin + + + + + + + + + + + +

Test of DynamicCSS plugin

+ + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/empty.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/empty.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/empty.html 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,22 @@ + + + HTMLArea 3.0 core test + + + + + + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/full-page.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/full-page.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/full-page.html 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,77 @@ + + + Test of FullPage plugin + + + + + + + + + + + +

Test of FullPage plugin

+ + + +
+
Mihai Bazon
+ + Last modified: Wed Aug 11 13:59:07 CEST 2004 + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/fully-loaded.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/fully-loaded.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/fully-loaded.html 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,262 @@ + + +Example of HTMLArea 3.0 + + + + + + + + + + + + + + + + + + + + + +

HTMLArea 3.0

+ +

A replacement for TEXTAREA elements. © InteractiveTools.com, 2003-2004.

+ +
+ + + +

+ + + + + +submit + + + +

+ + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/index.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/index.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/index.html 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,43 @@ + + +HTMLArea examples index + + + +

HTMLArea: auto-generated examples index

+ + + +
+
mihai_bazon@yahoo.com
+ Last modified: Sun Feb 1 13:30:39 EET 2004 + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/list-type.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/list-type.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/list-type.html 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,66 @@ + + + +Example of HTMLArea 3.0 -- ListType plugin + + + + + + + + + + + + + + +

HTMLArea :: the ListType plugin

+ +
+ + + +
+ + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/remove-font-tags.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/remove-font-tags.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/remove-font-tags.html 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,41 @@ + + + The "htmlRemoveTags" feature + + + + + + + + + + + +

Remove FONT tags

+ + + + +
+
Mihai Bazon
+ + Last modified: Wed Apr 28 15:09:09 EEST 2004 + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/spell-checker.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/spell-checker.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/spell-checker.html 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,132 @@ + + +Example of HTMLArea 3.0 + + + + + + + + + + + + + + + + + +

HTMLArea 3.0

+ +

A replacement for TEXTAREA elements. © InteractiveTools.com, 2003-2004.

+ +

Plugins: + SpellChecker (sponsored by American Bible Society). +

+ +
+ + + +

+ + + + + +submit + + + +

+ + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/table-operations.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/table-operations.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/table-operations.html 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,116 @@ + + +Example of HTMLArea 3.0 + + + + + + + + + + + + + + + + + +

HTMLArea 3.0

+ +

A replacement for TEXTAREA elements. © InteractiveTools.com, 2003-2004.

+ +

Page that demonstrates the additional features of the +TableOperations plugin (sponsored by Zapatec Inc.).

+ +
+ + + +

+ + + + + +submit + + + +

+ + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/examples/test.cgi =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/examples/test.cgi,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/examples/test.cgi 30 Jan 2005 16:13:26 -0000 1.1 @@ -0,0 +1,21 @@ +#! /usr/bin/perl -w +# +# +# + + + +use CGI; + +print "Content-type: text/html\n\n"; +$c = new CGI; +$ta = $c->param('ta'); + +print < + + +$ta + + +EOF Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_about.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_about.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_align_center.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_align_center.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_align_justify.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_align_justify.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_align_left.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_align_left.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_align_right.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_align_right.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_blank.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_blank.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_charmap.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_charmap.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_color_bg.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_color_bg.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_color_fg.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_color_fg.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_copy.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_copy.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_custom.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_custom.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_cut.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_cut.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_format_bold.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_format_bold.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_format_italic.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_format_italic.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_format_strike.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_format_strike.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_format_sub.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_format_sub.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_format_sup.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_format_sup.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_format_underline.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_format_underline.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_help.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_help.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_hr.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_hr.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_html.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_html.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_image.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_image.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_indent_less.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_indent_less.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_indent_more.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_indent_more.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_killword.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_killword.gif,v diff -u Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_left_to_right.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_left_to_right.gif,v diff -u Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_list_bullet.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_list_bullet.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_list_num.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_list_num.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_paste.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_paste.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_print.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_print.gif,v diff -u Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_redo.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_redo.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_right_to_left.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_right_to_left.gif,v diff -u Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_rmformat.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_rmformat.gif,v diff -u Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_save.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_save.gif,v diff -u Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_show_border.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_show_border.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_splitcel.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_splitcel.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_undo.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/ed_undo.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/fullscreen_maximize.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/fullscreen_maximize.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/images/fullscreen_minimize.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/images/fullscreen_minimize.gif,v diff -u -r1.1 -r1.2 Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/b5.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/b5.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/b5.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/b5.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,36 +1,36 @@ -// I18N constants -- Chinese Big-5 -// by Dave Lo -- dlo@interactivetools.com -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "b5", - - tooltips: { - bold: "����", - italic: "����", - underline: "���u", - strikethrough: "�R���u", - subscript: "�U��", - superscript: "�W��", - justifyleft: "��m�a��", - justifycenter: "��m�~��", - justifyright: "��m�a�k", - justifyfull: "��m���k����", - orderedlist: "���DzM��", - unorderedlist: "�L�DzM��", - outdent: "��p��e�ť�", - indent: "�[�e��e�ť�", - forecolor: "��r�C��", - backcolor: "�I���C��", - horizontalrule: "�����u", - createlink: "���J�s��", - insertimage: "���J�ϧ�", - inserttable: "���J���", - htmlmode: "����HTML��l�X", - popupeditor: "��j", - about: "���� HTMLArea", - help: "����", - textindicator: "�r��Ҥl" - } -}; +// I18N constants -- Chinese Big-5 +// by Dave Lo -- dlo@interactivetools.com +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "b5", + + tooltips: { + bold: "����", + italic: "����", + underline: "���u", + strikethrough: "�R���u", + subscript: "�U��", + superscript: "�W��", + justifyleft: "��m�a��", + justifycenter: "��m�~��", + justifyright: "��m�a�k", + justifyfull: "��m���k����", + orderedlist: "���DzM��", + unorderedlist: "�L�DzM��", + outdent: "��p��e�ť�", + indent: "�[�e��e�ť�", + forecolor: "��r�C��", + backcolor: "�I���C��", + horizontalrule: "�����u", + createlink: "���J�s��", + insertimage: "���J�ϧ�", + inserttable: "���J���", + htmlmode: "����HTML��l�X", + popupeditor: "��j", + about: "���� HTMLArea", + help: "����", + textindicator: "�r��Ҥl" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ch.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ch.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ch.js 30 Jan 2005 16:13:27 -0000 1.1 @@ -0,0 +1,83 @@ +// I18N constants + +// LANG: "ch", ENCODING: UTF-8 +// Samuel Stone, http://stonemicro.com/ + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "ch", + + tooltips: { + bold: "粗體", + italic: "斜體", + underline: "底線", + strikethrough: "刪線", + subscript: "下標", + superscript: "上標", + justifyleft: "靠左", + justifycenter: "居中", + justifyright: "靠右", + justifyfull: "整齊", + orderedlist: "順序清單", + unorderedlist: "無序清單", + outdent: "伸排", + indent: "縮排", + forecolor: "文字顏色", + backcolor: "背景顏色", + horizontalrule: "水平線", + createlink: "插入連結", + insertimage: "插入圖像", + inserttable: "插入表格", + htmlmode: "切換HTML原始碼", + popupeditor: "伸出編輯系統", + about: "關於 HTMLArea", + help: "說明", + textindicator: "字體例子", + undo: "回原", + redo: "重来", + cut: "剪制选项", + copy: "复制选项", + paste: "贴上", + lefttoright: "从左到右", + righttoleft: "从右到左" + }, + + buttons: { + "ok": "好", + "cancel": "取消" + }, + + msg: { + "Path": "途徑", + "TEXT_MODE": "你在用純字編輯方式. 用 [<>] 按鈕轉回 所見即所得 編輯方式.", + + "IE-sucks-full-screen" : + // translate here + "整頁式在Internet Explorer 上常出問題, " + + "因為這是 Internet Explorer 的無名問題,我們無法解決。" + + "你可能看見一些垃圾,或遇到其他問題。" + + "我們已警告了你. 如果要轉到 正頁式 請按 好.", + + "Moz-Clipboard" : + "Unprivileged scripts cannot access Cut/Copy/Paste programatically " + + "for security reasons. Click OK to see a technical note at mozilla.org " + + "which shows you how to allow a script to access the clipboard." + }, + + dialogs: { + "Cancel" : "取消", + "Insert/Modify Link" : "插入/改寫連結", + "New window (_blank)" : "新窗户(_blank)", + "None (use implicit)" : "無(use implicit)", + "OK" : "好", + "Other" : "其他", + "Same frame (_self)" : "本匡 (_self)", + "Target:" : "目標匡:", + "Title (tooltip):" : "主題 (tooltip):", + "Top frame (_top)" : "上匡 (_top)", + "URL:" : "網址:", + "You must enter the URL where this link points to" : "你必須輸入你要连结的網址" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/cz.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/cz.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/cz.js 30 Jan 2005 16:13:27 -0000 1.1 @@ -0,0 +1,126 @@ +// I18N constants + + + +// LANG: "cz", ENCODING: UTF-8 | ISO-8859-2 + +// Author: Jiri Löw, + + + +// FOR TRANSLATORS: + +// + +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE + +// (at least a valid email address) + +// + +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; + +// (if this is not possible, please include a comment + +// that states what encoding is necessary.) + + + +HTMLArea.I18N = { + + + + // the following should be the filename without .js extension + + // it will be used for automatically load plugin language. + + lang: "cz", + + + + tooltips: { + + bold: "Tučně", + + italic: "Kurzíva", + + underline: "Podtržení", + + strikethrough: "Přeškrtnutí", + + subscript: "Dolní index", + + superscript: "Horní index", + + justifyleft: "Zarovnat doleva", + + justifycenter: "Na střed", + + justifyright: "Zarovnat doprava", + + justifyfull: "Zarovnat do stran", + + orderedlist: "Seznam", + + unorderedlist: "Odrážky", + + outdent: "Předsadit", + + indent: "Odsadit", + + forecolor: "Barva písma", + + hilitecolor: "Barva pozadí", + + horizontalrule: "Vodorovná čára", + + createlink: "Vložit odkaz", + + insertimage: "Vložit obrázek", + + inserttable: "Vložit tabulku", + + htmlmode: "Přepnout HTML", + + popupeditor: "Nové okno editoru", + + about: "O této aplikaci", + + showhelp: "Nápověda aplikace", + + textindicator: "Zvolený styl", + + undo: "Vrátí poslední akci", + + redo: "Opakuje poslední akci", + + cut: "Vyjmout", + + copy: "Kopírovat", + + paste: "Vložit" + + }, + + + + buttons: { + + "ok": "OK", + + "cancel": "Zrušit" + + }, + + + + msg: { + + "Path": "Cesta", + + "TEXT_MODE": "Jste v TEXTOVÉM REŽIMU. Použijte tlačítko [<>] pro přepnutí do WYSIWIG." + + } + +}; + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/da.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/da.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/da.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/da.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,38 +1,38 @@ -// danish version for htmlArea v3.0 - Alpha Release -// - translated by rene -// term�s and licenses are equal to htmlarea! - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "da", - - tooltips: { - bold: "Fed", - italic: "Kursiv", - underline: "Understregning", - strikethrough: "Overstregning ", - subscript: "S�nket skrift", - superscript: "H�vet skrift", - justifyleft: "Venstrejuster", - justifycenter: "Centrer", - justifyright: "H�jrejuster", - justifyfull: "Lige margener", - orderedlist: "Opstilling med tal", - unorderedlist: "Opstilling med punkttegn", - outdent: "Formindsk indrykning", - indent: "For�g indrykning", - forecolor: "Skriftfarve", - backcolor: "Baggrundsfarve", - horizontalrule: "Horisontal linie", - createlink: "Inds�t hyperlink", - insertimage: "Inds�t billede", - inserttable: "Inds�t tabel", - htmlmode: "HTML visning", - popupeditor: "Vis editor i popup", - about: "Om htmlarea", - help: "Hj�lp", - textindicator: "Anvendt stil" - } -}; +// danish version for htmlArea v3.0 - Alpha Release +// - translated by rene +// term�s and licenses are equal to htmlarea! + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "da", + + tooltips: { + bold: "Fed", + italic: "Kursiv", + underline: "Understregning", + strikethrough: "Overstregning ", + subscript: "S�nket skrift", + superscript: "H�vet skrift", + justifyleft: "Venstrejuster", + justifycenter: "Centrer", + justifyright: "H�jrejuster", + justifyfull: "Lige margener", + orderedlist: "Opstilling med tal", + unorderedlist: "Opstilling med punkttegn", + outdent: "Formindsk indrykning", + indent: "For�g indrykning", + forecolor: "Skriftfarve", + backcolor: "Baggrundsfarve", + horizontalrule: "Horisontal linie", + createlink: "Inds�t hyperlink", + insertimage: "Inds�t billede", + inserttable: "Inds�t tabel", + htmlmode: "HTML visning", + popupeditor: "Vis editor i popup", + about: "Om htmlarea", + help: "Hj�lp", + textindicator: "Anvendt stil" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/de.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/de.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/de.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/de.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,38 +1,80 @@ -// german version for htmlArea v3.0 - Alpha Release -// - translated by AtK -// term�s and licenses are equal to htmlarea! - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "de", - - tooltips: { - bold: "Fett", - italic: "Kursiv", - underline: "Unterstrichen", - strikethrough: "Durchgestrichen", - subscript: "hochgestellt", - superscript: "tiefgestellt", - justifyleft: "Links ausrichten", - justifycenter: "Zentrieren", - justifyright: "Rechts ausrichten", - justifyfull: "Blocksatz", - orderedlist: "Nummerierung", - unorderedlist: "Aufz�hlungszeichen", - outdent: "Einzug verkleinern", - indent: "Einzug vergr�ssern", - forecolor: "Text Farbe", - backcolor: "Hintergrund Farbe", - horizontalrule: "Horizontale Linie", - createlink: "Hyperlink einf�gen", - insertimage: "Bild einf�gen", - inserttable: "Tabelle einf�gen", - htmlmode: "HTML Modus", - popupeditor: "Editor im Popup �ffnen", - about: "�ber htmlarea", - help: "Hilfe", - textindicator: "derzeitiger Stil" - } -}; +// I18N constants + +// LANG: "de", ENCODING: ISO-8859-1 for the german umlaut! + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "de", + + tooltips: { + bold: "Fett", + italic: "Kursiv", + underline: "Unterstrichen", + strikethrough: "Durchgestrichen", + subscript: "Hochgestellt", + superscript: "Tiefgestellt", + justifyleft: "Linksb�ndig", + justifycenter: "Zentriert", + justifyright: "Rechtsb�ndig", + justifyfull: "Blocksatz", + orderedlist: "Nummerierung", + unorderedlist: "Aufz�hlungszeichen", + outdent: "Einzug verkleinern", + indent: "Einzug vergr��ern", + forecolor: "Schriftfarbe", + backcolor: "Hindergrundfarbe", + hilitecolor: "Hintergrundfarbe", + horizontalrule: "Horizontale Linie", + inserthorizontalrule: "Horizontale Linie", + createlink: "Hyperlink einf�gen", + insertimage: "Bild einf�gen", + inserttable: "Tabelle einf�gen", + htmlmode: "HTML Modus", + popupeditor: "Editor im Popup �ffnen", + about: "�ber htmlarea", + help: "Hilfe", + showhelp: "Hilfe", + textindicator: "Derzeitiger Stil", + undo: "R�ckg�ngig", + redo: "Wiederholen", + cut: "Ausschneiden", + copy: "Kopieren", + paste: "Einf�gen aus der Zwischenablage", + lefttoright: "Textrichtung von Links nach Rechts", + righttoleft: "Textrichtung von Rechts nach Links", + removeformat: "Formatierung entfernen" + }, + + buttons: { + "ok": "OK", + "cancel": "Abbrechen" + }, + + msg: { + "Path": "Pfad", + "TEXT_MODE": "Sie sind im Text-Modus. Benutzen Sie den [<>] Knopf um in den visuellen Modus (WYSIWIG) zu gelangen.", + + "Moz-Clipboard" : + "Aus Sicherheitsgr�nden d�rfen Skripte normalerweise nicht programmtechnisch auf " + + "Ausschneiden/Kopieren/Einf�gen zugreifen. Bitte klicken Sie OK um die technische " + + "Erl�uterung auf mozilla.org zu �ffnen, in der erkl�rt wird, wie einem Skript Zugriff " + + "gew�hrt werden kann." + }, + + dialogs: { + "OK": "OK", + "Cancel": "Abbrechen", + "Insert/Modify Link": "Verkn�pfung hinzuf�gen/�ndern", + "None (use implicit)": "k.A. (implizit)", + "New window (_blank)": "Neues Fenster (_blank)", + "Same frame (_self)": "Selber Rahmen (_self)", + "Top frame (_top)": "Oberster Rahmen (_top)", + "Other": "Anderes", + "Target:": "Ziel:", + "Title (tooltip):": "Titel (Tooltip):", + "URL:": "URL:", + "You must enter the URL where this link points to": "Sie m�ssen eine Ziel-URL angeben f�r die Verkn�pfung angeben" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ee.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ee.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ee.js 30 Jan 2005 16:13:27 -0000 1.1 @@ -0,0 +1,63 @@ +// I18N constants + +// LANG: "ee", ENCODING: UTF-8 | ISO-8859-1 +// Author: Martin Raie, + +// FOR TRANSLATORS: +// +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE +// (at least a valid email address) +// +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; +// (if this is not possible, please include a comment +// that states what encoding is necessary.) + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "ee", + + tooltips: { + bold: "Paks", + italic: "Kursiiv", + underline: "Allakriipsutatud", + strikethrough: "L�bikriipsutatud", + subscript: "Allindeks", + superscript: "�laindeks", + justifyleft: "Joonda vasakule", + justifycenter: "Joonda keskele", + justifyright: "Joonda paremale", + justifyfull: "R��pjoonda", + orderedlist: "Nummerdus", + unorderedlist: "T�pploend", + outdent: "V�henda taanet", + indent: "Suurenda taanet", + forecolor: "Fondi v�rv", + hilitecolor: "Tausta v�rv", + inserthorizontalrule: "Horisontaaljoon", + createlink: "Lisa viit", + insertimage: "Lisa pilt", + inserttable: "Lisa tabel", + htmlmode: "HTML/tavaline vaade", + popupeditor: "Suurenda toimeti aken", + about: "Teave toimeti kohta", + showhelp: "Spikker", + textindicator: "Kirjastiil", + undo: "V�ta tagasi", + redo: "Tee uuesti", + cut: "L�ika", + copy: "Kopeeri", + paste: "Kleebi" + }, + + buttons: { + "ok": "OK", + "cancel": "Loobu" + }, + + msg: { + "Path": "Path", + "TEXT_MODE": "Sa oled tekstireziimis. Kasuta nuppu [<>] l�litamaks tagasi WYSIWIG reziimi." + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/el.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/el.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/el.js 30 Jan 2005 16:13:27 -0000 1.1 @@ -0,0 +1,75 @@ +// I18N constants + +// LANG: "el", ENCODING: UTF-8 | ISO-8859-7 +// Author: Dimitris Glezos, dimitris@glezos.com + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "el", + + tooltips: { + bold: "Έντονα", + italic: "Πλάγια", + underline: "Υπογραμμισμένα", + strikethrough: "Διαγραμμένα", + subscript: "Δείκτης", + superscript: "Δείκτης", + justifyleft: "Στοίχιση Αριστερά", + justifycenter: "Στοίχιση Κέντρο", + justifyright: "Στοίχιση Δεξιά", + justifyfull: "Πλήρης Στοίχιση", + orderedlist: "Αρίθμηση", + unorderedlist: "Κουκκίδες", + outdent: "Μείωση Εσοχής", + indent: "Αύξηση Εσοχής", + forecolor: "Χρώμα Γραμματοσειράς", + hilitecolor: "Χρώμα Φόντου", + horizontalrule: "Οριζόντια Γραμμή", + createlink: "Εισαγωγή Συνδέσμου", + insertimage: "Εισαγωγή/Τροποποίηση Εικόνας", + inserttable: "Εισαγωγή Πίνακα", + htmlmode: "Εναλλαγή σε/από HTML", + popupeditor: "Μεγένθυνση επεξεργαστή", + about: "Πληροφορίες", + showhelp: "Βοήθεια", + textindicator: "Παρών στυλ", + undo: "Αναίρεση τελευταίας ενέργειας", + redo: "Επαναφορά από αναίρεση", + cut: "Αποκοπή", + copy: "Αντιγραφή", + paste: "Επικόλληση", + lefttoright: "Κατεύθυνση αριστερά προς δεξιά", + righttoleft: "Κατεύθυνση από δεξιά προς τα αριστερά" + }, + + buttons: { + "ok": "OK", + "cancel": "Ακύρωση" + }, + + msg: { + "Path": "Διαδρομή", + "TEXT_MODE": "Είστε σε TEXT MODE. Χρησιμοποιήστε το κουμπί [<>] για να επανέρθετε στο WYSIWIG.", + + "IE-sucks-full-screen": "Η κατάσταση πλήρης οθόνης έχει προβλήματα με τον Internet Explorer, " + + "λόγω σφαλμάτων στον ίδιο τον browser. Αν το σύστημα σας είναι Windows 9x " + + "μπορεί και να χρειαστείτε reboot. Αν είστε σίγουροι, πατήστε ΟΚ." + }, + + dialogs: { + "Cancel" : "Ακύρωση", + "Insert/Modify Link" : "Εισαγωγή/Τροποποίηση σύνδεσμου", + "New window (_blank)" : "Νέο παράθυρο (_blank)", + "None (use implicit)" : "Κανένα (χρήση απόλυτου)", + "OK" : "Εντάξει", + "Other" : "Αλλο", + "Same frame (_self)" : "Ίδιο frame (_self)", + "Target:" : "Target:", + "Title (tooltip):" : "Τίτλος (tooltip):", + "Top frame (_top)" : "Πάνω frame (_top)", + "URL:" : "URL:", + "You must enter the URL where this link points to" : "Πρέπει να εισάγετε το URL που οδηγεί αυτός ο σύνδεσμος" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/en.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/en.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/en.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/en.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,63 +1,147 @@ -// I18N constants - -// LANG: "en", ENCODING: UTF-8 | ISO-8859-1 -// Author: Mihai Bazon, - -// FOR TRANSLATORS: -// -// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE -// (at least a valid email address) -// -// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; -// (if this is not possible, please include a comment -// that states what encoding is necessary.) - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "en", - - tooltips: { - bold: "Bold", - italic: "Italic", - underline: "Underline", - strikethrough: "Strikethrough", - subscript: "Subscript", - superscript: "Superscript", - justifyleft: "Justify Left", - justifycenter: "Justify Center", - justifyright: "Justify Right", - justifyfull: "Justify Full", - orderedlist: "Ordered List", - unorderedlist: "Bulleted List", - outdent: "Decrease Indent", - indent: "Increase Indent", - forecolor: "Font Color", - hilitecolor: "Background Color", - horizontalrule: "Horizontal Rule", - createlink: "Insert Web Link", - insertimage: "Insert Image", - inserttable: "Insert Table", - htmlmode: "Toggle HTML Source", - popupeditor: "Enlarge Editor", - about: "About this editor", - showhelp: "Help using editor", - textindicator: "Current style", - undo: "Undoes your last action", - redo: "Redoes your last action", - cut: "Cut selection", - copy: "Copy selection", - paste: "Paste from clipboard" - }, - - buttons: { - "ok": "OK", - "cancel": "Cancel" - }, - - msg: { - "Path": "Path", - "TEXT_MODE": "You are in TEXT MODE. Use the [<>] button to switch back to WYSIWIG." - } -}; +// I18N constants + +// LANG: "en", ENCODING: UTF-8 | ISO-8859-1 +// Author: Mihai Bazon, http://dynarch.com/mishoo + +// FOR TRANSLATORS: +// +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE +// (at least a valid email address) +// +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; +// (if this is not possible, please include a comment +// that states what encoding is necessary.) + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "en", + + tooltips: { + bold: "Bold", + italic: "Italic", + underline: "Underline", + strikethrough: "Strikethrough", + subscript: "Subscript", + superscript: "Superscript", + justifyleft: "Justify Left", + justifycenter: "Justify Center", + justifyright: "Justify Right", + justifyfull: "Justify Full", + orderedlist: "Ordered List", + unorderedlist: "Bulleted List", + outdent: "Decrease Indent", + indent: "Increase Indent", + forecolor: "Font Color", + hilitecolor: "Background Color", + horizontalrule: "Horizontal Rule", + createlink: "Insert Web Link", + insertimage: "Insert/Modify Image", + inserttable: "Insert Table", + htmlmode: "Toggle HTML Source", + popupeditor: "Enlarge Editor", + about: "About this editor", + showhelp: "Help using editor", + textindicator: "Current style", + undo: "Undoes your last action", + redo: "Redoes your last action", + cut: "Cut selection", + copy: "Copy selection", + paste: "Paste from clipboard", + lefttoright: "Direction left to right", + righttoleft: "Direction right to left", + removeformat: "Remove formatting", + print: "Print document", + killword: "Clear MSOffice tags" + }, + + buttons: { + "ok": "OK", + "cancel": "Cancel" + }, + + msg: { + "Path": "Path", + "TEXT_MODE": "You are in TEXT MODE. Use the [<>] button to switch back to WYSIWYG.", + + "IE-sucks-full-screen" : + // translate here + "The full screen mode is known to cause problems with Internet Explorer, " + + "due to browser bugs that we weren't able to workaround. You might experience garbage " + + "display, lack of editor functions and/or random browser crashes. If your system is Windows 9x " + + "it's very likely that you'll get a 'General Protection Fault' and need to reboot.\n\n" + + "You have been warned. Please press OK if you still want to try the full screen editor.", + + "Moz-Clipboard" : + "Unprivileged scripts cannot access Cut/Copy/Paste programatically " + + "for security reasons. Click OK to see a technical note at mozilla.org " + + "which shows you how to allow a script to access the clipboard." + }, + + dialogs: { + // Common + "OK" : "OK", + "Cancel" : "Cancel", + + "Alignment:" : "Alignment:", + "Not set" : "Not set", + "Left" : "Left", + "Right" : "Right", + "Texttop" : "Texttop", + "Absmiddle" : "Absmiddle", + "Baseline" : "Baseline", + "Absbottom" : "Absbottom", + "Bottom" : "Bottom", + "Middle" : "Middle", + "Top" : "Top", + + "Layout" : "Layout", + "Spacing" : "Spacing", + "Horizontal:" : "Horizontal:", + "Horizontal padding" : "Horizontal padding", + "Vertical:" : "Vertical:", + "Vertical padding" : "Vertical padding", + "Border thickness:" : "Border thickness:", + "Leave empty for no border" : "Leave empty for no border", + + // Insert Link + "Insert/Modify Link" : "Insert/Modify Link", + "None (use implicit)" : "None (use implicit)", + "New window (_blank)" : "New window (_blank)", + "Same frame (_self)" : "Same frame (_self)", + "Top frame (_top)" : "Top frame (_top)", + "Other" : "Other", + "Target:" : "Target:", + "Title (tooltip):" : "Title (tooltip):", + "URL:" : "URL:", + "You must enter the URL where this link points to" : "You must enter the URL where this link points to", + // Insert Table + "Insert Table" : "Insert Table", + "Rows:" : "Rows:", + "Number of rows" : "Number of rows", + "Cols:" : "Cols:", + "Number of columns" : "Number of columns", + "Width:" : "Width:", + "Width of the table" : "Width of the table", + "Percent" : "Percent", + "Pixels" : "Pixels", + "Em" : "Em", + "Width unit" : "Width unit", + "Positioning of this table" : "Positioning of this table", + "Cell spacing:" : "Cell spacing:", + "Space between adjacent cells" : "Space between adjacent cells", + "Cell padding:" : "Cell padding:", + "Space between content and border in cell" : "Space between content and border in cell", + // Insert Image + "Insert Image" : "Insert Image", + "Image URL:" : "Image URL:", + "Enter the image URL here" : "Enter the image URL here", + "Preview" : "Preview", + "Preview the image in a new window" : "Preview the image in a new window", + "Alternate text:" : "Alternate text:", + "For browsers that don't support images" : "For browsers that don't support images", + "Positioning of this image" : "Positioning of this image", + "Image Preview:" : "Image Preview:" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/es.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/es.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/es.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/es.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,18 +1,18 @@ // I18N constants HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "es", - + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "es", + tooltips: { - bold: "Negritas", + bold: "Negrita", italic: "Cursiva", underline: "Subrayado", - strikethrough: "Texto Cruzado", - subscript: "Subscript", - superscript: "Superscript", + strikethrough: "Tachado", + subscript: "Sub�ndice", + superscript: "Super�ndice", justifyleft: "Alinear a la Izquierda", justifycenter: "Centrar", justifyright: "Alinear a la Derecha", @@ -22,15 +22,30 @@ outdent: "Aumentar Sangr�a", indent: "Disminuir Sangr�a", forecolor: "Color del Texto", - backcolor: "Color del Fondo", - horizontalrule: "L�nea Horizontal", + hilitecolor: "Color del Fondo", + inserthorizontalrule: "L�nea Horizontal", createlink: "Insertar Enlace", insertimage: "Insertar Imagen", inserttable: "Insertar Tabla", htmlmode: "Ver Documento en HTML", popupeditor: "Ampliar Editor", about: "Acerca del Editor", - help: "Ayuda", - textindicator: "Estilo Actual" + showhelp: "Ayuda", + textindicator: "Estilo Actual", + undo: "Deshacer", + redo: "Rehacer", + cut: "Cortar selecci�n", + copy: "Copiar selecci�n", + paste: "Pegar desde el portapapeles" + }, + + buttons: { + "ok": "Aceptar", + "cancel": "Cancelar" + }, + + msg: { + "Path": "Ruta", + "TEXT_MODE": "Esta en modo TEXTO. Use el boton [<>] para cambiar a WYSIWIG", } }; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/fi.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/fi.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/fi.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/fi.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,46 +1,46 @@ -// I18N constants - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "en", - - tooltips: { - bold: "Lihavoitu", - italic: "Kursivoitu", - underline: "Alleviivattu", - strikethrough: "Yliviivattu", - subscript: "Alaindeksi", - superscript: "Yl�indeksi", - justifyleft: "Tasaa vasemmat reunat", - justifycenter: "Keskit�", - justifyright: "Tasaa oikeat reunat", - justifyfull: "Tasaa molemmat reunat", - insertorderedlist: "Numerointi", - insertunorderedlist: "Luettelomerkit", - outdent: "Lis�� sisennyst�", - indent: "Pienenn� sisennyst�", - forecolor: "Fontin v�ri", - hilitecolor: "Taustav�ri", - inserthorizontalrule: "Vaakaviiva", - createlink: "Lis�� Linkki", - insertimage: "Lis�� Kuva", - inserttable: "Lis�� Taulu", - htmlmode: "HTML L�hdekoodi vs WYSIWYG", - popupeditor: "Suurenna Editori", - about: "Tietoja Editorista", - showhelp: "N�yt� Ohje", - textindicator: "Nykyinen tyyli", - undo: "Peruuta viimeinen toiminto", - redo: "Palauta viimeinen toiminto", - cut: "Leikkaa maalattu", - copy: "Kopioi maalattu", - paste: "Liit� leikepy�d�lt�" - }, - - buttons: { - "ok": "Hyv�ksy", - "cancel": "Peruuta" - } -}; +// I18N constants + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "en", + + tooltips: { + bold: "Lihavoitu", + italic: "Kursivoitu", + underline: "Alleviivattu", + strikethrough: "Yliviivattu", + subscript: "Alaindeksi", + superscript: "Yl�indeksi", + justifyleft: "Tasaa vasemmat reunat", + justifycenter: "Keskit�", + justifyright: "Tasaa oikeat reunat", + justifyfull: "Tasaa molemmat reunat", + orderedlist: "Numerointi", + unorderedlist: "Luettelomerkit", + outdent: "Lis�� sisennyst�", + indent: "Pienenn� sisennyst�", + forecolor: "Fontin v�ri", + hilitecolor: "Taustav�ri", + inserthorizontalrule: "Vaakaviiva", + createlink: "Lis�� Linkki", + insertimage: "Lis�� Kuva", + inserttable: "Lis�� Taulu", + htmlmode: "HTML L�hdekoodi vs WYSIWYG", + popupeditor: "Suurenna Editori", + about: "Tietoja Editorista", + showhelp: "N�yt� Ohje", + textindicator: "Nykyinen tyyli", + undo: "Peruuta viimeinen toiminto", + redo: "Palauta viimeinen toiminto", + cut: "Leikkaa maalattu", + copy: "Kopioi maalattu", + paste: "Liit� leikepy�d�lt�" + }, + + buttons: { + "ok": "Hyv�ksy", + "cancel": "Peruuta" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/fr.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/fr.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/fr.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/fr.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,36 +1,97 @@ -// I18N constants - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "fr", - - tooltips: { - bold: "Gras", - italic: "Italique", - underline: "Soulign�", - strikethrough: "Barr�", - subscript: "Subscript", - superscript: "Superscript", - justifyleft: "Align� � gauche", - justifycenter: "Centr�", - justifyright: "Align� � droite", - justifyfull: "Justifi�", - orderedlist: "Num�rotation", - unorderedlist: "Puces", - outdent: "Augmenter le retrait", - indent: "Diminuer le retrait", - forecolor: "Couleur du texte", - backcolor: "Couleur du fond", - horizontalrule: "Ligne horizontale", - createlink: "Ins�rer un lien", - insertimage: "Ins�rer une image", - inserttable: "Ins�rer un tableau", - htmlmode: "Passer au code source HTML", - popupeditor: "Agrandir l'�diteur", - about: "A propos de cet �diteur", - help: "Aide sur l'�diteur", - textindicator: "Style courant" - } -}; +// I18N constants + +// LANG: "fr", ENCODING: UTF-8 | ISO-8859-1 +// Author: Simon Richard, s.rich@sympatico.ca + +// FOR TRANSLATORS: +// +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE +// (at least a valid email address) +// +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; +// (if this is not possible, please include a comment +// that states what encoding is necessary.) + +// All technical terms used in this document are the ones approved +// by the Office qu�b�cois de la langue fran�aise. +// Tous les termes techniques utilis�s dans ce document sont ceux +// approuv�s par l'Office qu�b�cois de la langue fran�aise. +// http://www.oqlf.gouv.qc.ca/ + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "fr", + + tooltips: { + bold: "Gras", + italic: "Italique", + underline: "Soulign�", + strikethrough: "Barr�", + subscript: "Indice", + superscript: "Exposant", + justifyleft: "Align� � gauche", + justifycenter: "Centr�", + justifyright: "Align� � droite", + justifyfull: "Justifier", + orderedlist: "Num�rotation", + unorderedlist: "Puces", + outdent: "Diminuer le retrait", + indent: "Augmenter le retrait", + forecolor: "Couleur de police", + hilitecolor: "Surlignage", + horizontalrule: "Ligne horizontale", + createlink: "Ins�rer un hyperlien", + insertimage: "Ins�rer/Modifier une image", + inserttable: "Ins�rer un tableau", + htmlmode: "Passer au code source", + popupeditor: "Agrandir l'�diteur", + about: "� propos de cet �diteur", + showhelp: "Aide sur l'�diteur", + textindicator: "Style courant", + undo: "Annuler la derni�re action", + redo: "R�p�ter la derni�re action", + cut: "Couper la s�lection", + copy: "Copier la s�lection", + paste: "Coller depuis le presse-papier", + lefttoright: "Direction de gauche � droite", + righttoleft: "Direction de droite � gauche" + }, + + buttons: { + "ok": "OK", + "cancel": "Annuler" + }, + + msg: { + "Path": "Chemin", + "TEXT_MODE": "Vous �tes en MODE TEXTE. Appuyez sur le bouton [<>] pour retourner au mode tel-tel.", + + "IE-sucks-full-screen" : + // translate here + "Le mode plein �cran peut causer des probl�mes sous Internet Explorer, " + + "ceci d� � des bogues du navigateur qui ont �t� impossible � contourner. " + + "Les diff�rents sympt�mes peuvent �tre un affichage d�ficient, le manque de " + + "fonctions dans l'�diteur et/ou pannes al�atoires du navigateur. Si votre " + + "syst�me est Windows 9x, il est possible que vous subissiez une erreur de type " + + "�General Protection Fault� et que vous ayez � red�marrer votre ordinateur." + + "\n\nConsid�rez-vous comme ayant �t� avis�. Appuyez sur OK si vous d�sirez tout " + + "de m�me essayer le mode plein �cran de l'�diteur." + }, + + dialogs: { + "Cancel" : "Annuler", + "Insert/Modify Link" : "Ins�rer/Modifier Lien", + "New window (_blank)" : "Nouvelle fen�tre (_blank)", + "None (use implicit)" : "Aucun (par d�faut)", + "OK" : "OK", + "Other" : "Autre", + "Same frame (_self)" : "M�me cadre (_self)", + "Target:" : "Cible:", + "Title (tooltip):" : "Titre (infobulle):", + "Top frame (_top)" : "Cadre du haut (_top)", + "URL:" : "Adresse Web:", + "You must enter the URL where this link points to" : "Vous devez entrer l'adresse Web du lien" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/gb.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/gb.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/gb.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/gb.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,36 +1,36 @@ -// I18N constants -- Chinese GB -// by Dave Lo -- dlo@interactivetools.com -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "gb", - - tooltips: { - bold: "����", - italic: "б��", - underline: "����", - strikethrough: "ɾ����", - subscript: "�±�", - superscript: "�ϱ�", - justifyleft: "λ�ÿ���", - justifycenter: "λ�þ���", - justifyright: "λ�ÿ���", - justifyfull: "λ������ƽ��", - orderedlist: "˳���嵥", - unorderedlist: "�����嵥", - outdent: "��С��ǰ�հ�", - indent: "�ӿ���ǰ�հ�", - forecolor: "������ɫ", - backcolor: "������ɫ", - horizontalrule: "ˮƽ��", - createlink: "��������", - insertimage: "����ͼ��", - inserttable: "������", - htmlmode: "�л�HTMLԭʼ��", - popupeditor: "�Ŵ�", - about: "��� HTMLArea", - help: "˵��", - textindicator: "��������" - } -}; +// I18N constants -- Chinese GB +// by Dave Lo -- dlo@interactivetools.com +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "gb", + + tooltips: { + bold: "����", + italic: "б��", + underline: "����", + strikethrough: "ɾ����", + subscript: "�±�", + superscript: "�ϱ�", + justifyleft: "λ�ÿ���", + justifycenter: "λ�þ���", + justifyright: "λ�ÿ���", + justifyfull: "λ������ƽ��", + orderedlist: "˳���嵥", + unorderedlist: "�����嵥", + outdent: "��С��ǰ�հ�", + indent: "�ӿ���ǰ�հ�", + forecolor: "������ɫ", + backcolor: "������ɫ", + horizontalrule: "ˮƽ��", + createlink: "��������", + insertimage: "����ͼ��", + inserttable: "������", + htmlmode: "�л�HTMLԭʼ��", + popupeditor: "�Ŵ�", + about: "��� HTMLArea", + help: "˵��", + textindicator: "��������" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/he.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/he.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/he.js 30 Jan 2005 16:13:27 -0000 1.1 @@ -0,0 +1,178 @@ +// I18N constants + + + +// LANG: "he", ENCODING: UTF-8 + +// Author: Liron Newman, http://www.eesh.net, + + + +// FOR TRANSLATORS: + +// + +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE + +// (at least a valid email address) + +// + +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; + +// (if this is not possible, please include a comment + +// that states what encoding is necessary.) + + + +HTMLArea.I18N = { + + + + // the following should be the filename without .js extension + + // it will be used for automatically load plugin language. + + lang: "he", + + + + tooltips: { + + bold: "מודגש", + + italic: "נטוי", + + underline: "קו תחתי", + + strikethrough: "קו אמצע", + + subscript: "כתב עילי", + + superscript: "כתב תחתי", + + justifyleft: " ישור לשמאל", + + justifycenter: "ישור למרכז", + + justifyright: "ישור לימין", + + justifyfull: "ישור לשורה מלאה", + + orderedlist: "רשימה ממוספרת", + + unorderedlist: "רשימה לא ממוספרת", + + outdent: "הקטן כניסה", + + indent: "הגדל כניסה", + + forecolor: "צבע גופן", + + hilitecolor: "צבע רקע", + + horizontalrule: "קו אנכי", + + createlink: "הכנס היפר-קישור", + + insertimage: "הכנס/שנה תמונה", + + inserttable: "הכנס טבלה", + + htmlmode: "שנה מצב קוד HTML", + + popupeditor: "הגדל את העורך", + + about: "אודות עורך זה", + + showhelp: "עזרה לשימוש בעורך", + + textindicator: "סגנון נוכחי", + + undo: "מבטל את פעולתך האחרונה", + + redo: "מבצע מחדש את הפעולה האחרונה שביטלת", + + cut: "גזור בחירה", + + copy: "העתק בחירה", + + paste: "הדבק מהלוח", + + lefttoright: "כיוון משמאל לימין", + + righttoleft: "כיוון מימין לשמאל" + + }, + + + + buttons: { + + "ok": "אישור", + + "cancel": "ביטול" + + }, + + + + msg: { + + "Path": "נתיב עיצוב", + + "TEXT_MODE": "אתה במצב טקסט נקי (קוד). השתמש בכפתור [<>] כדי לחזור למצב WYSIWYG (תצוגת עיצוב).", + + + + "IE-sucks-full-screen" : + + // translate here + + "מצב מסך מלא יוצר בעיות בדפדפן Internet Explorer, " + + + "עקב באגים בדפדפן לא יכולנו לפתור את זה. את/ה עלול/ה לחוות תצוגת זבל, " + + + "בעיות בתפקוד העורך ו/או קריסה של הדפדפן. אם המערכת שלך היא Windows 9x " + + + "סביר להניח שתקבל/י 'General Protection Fault' ותאלצ/י לאתחל את המחשב.\n\n" + + + "ראה/י הוזהרת. אנא לחץ/י אישור אם את/ה עדיין רוצה לנסות את העורך במסך מלא." + + }, + + + + dialogs: { + + "Cancel" : "ביטול", + + "Insert/Modify Link" : "הוסף/שנה קישור", + + "New window (_blank)" : "חלון חדש (_blank)", + + "None (use implicit)" : "ללא (השתמש ב-frame הקיים)", + + "OK" : "OK", + + "Other" : "אחר", + + "Same frame (_self)" : "אותו frame (_self)", + + "Target:" : "יעד:", + + "Title (tooltip):" : "כותרת (tooltip):", + + "Top frame (_top)" : "Frame עליון (_top)", + + "URL:" : "URL:", + + "You must enter the URL where this link points to" : "חובה לכתוב URL שאליו קישור זה מצביע" + + + + } + +}; + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/hu.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/hu.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/hu.js 30 Jan 2005 16:13:27 -0000 1.1 @@ -0,0 +1,90 @@ +// I18N constants + +// LANG: "hu", ENCODING: UTF-8 +// Author: Miklós Somogyi, + +// FOR TRANSLATORS: +// +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE +// (at least a valid email address) +// +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; +// (if this is not possible, please include a comment +// that states what encoding is necessary.) + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "hu", + + tooltips: { + bold: "Félkövér", + italic: "Dőlt", + underline: "Aláhúzott", + strikethrough: "Áthúzott", + subscript: "Alsó index", + superscript: "Felső index", + justifyleft: "Balra zárt", + justifycenter: "Középre zárt", + justifyright: "Jobbra zárt", + justifyfull: "Sorkizárt", + orderedlist: "Számozott lista", + unorderedlist: "Számozatlan lista", + outdent: "Behúzás csökkentése", + indent: "Behúzás növelése", + forecolor: "Karakterszín", + hilitecolor: "Háttérszín", + horizontalrule: "Elválasztó vonal", + createlink: "Hiperhivatkozás beszúrása", + insertimage: "Kép beszúrása", + inserttable: "Táblázat beszúrása", + htmlmode: "HTML forrás be/ki", + popupeditor: "Szerkesztő külön ablakban", + about: "Névjegy", + showhelp: "Súgó", + textindicator: "Aktuális stílus", + undo: "Visszavonás", + redo: "Újra végrehajtás", + cut: "Kivágás", + copy: "Másolás", + paste: "Beillesztés", + lefttoright: "Irány balról jobbra", + righttoleft: "Irány jobbról balra" + }, + + buttons: { + "ok": "Rendben", + "cancel": "Mégsem" + }, + + msg: { + "Path": "Hierarchia", + "TEXT_MODE": "Forrás mód. Visszaváltás [<>] gomb", + + "IE-sucks-full-screen" : + // translate here + "A teljesképrenyős szerkesztés hibát okozhat Internet Explorer használata esetén, " + + "ez a böngésző a hibája, amit nem tudunk kikerülni. Szemetet észlelhet a képrenyőn, " + + "illetve néhány funkció hiányozhat és/vagy véletlenszerűen lefagyhat a böngésző. " + + "Windows 9x operaciós futtatása esetén elég valószínű, hogy 'General Protection Fault' " + + "hibát okoz és újra kell indítania a számítógépet.\n\n" + + "Figyelmeztettük. Kérjük nyomja meg a Rendben gombot, ha mégis szeretné megnyitni a " + + "szerkesztőt külön ablakban." + }, + + dialogs: { + "Cancel" : "Mégsem", + "Insert/Modify Link" : "Hivatkozás Beszúrása/Módosítása", + "New window (_blank)" : "Új ablak (_blank)", + "None (use implicit)" : "Nincs (use implicit)", + "OK" : "OK", + "Other" : "Más", + "Same frame (_self)" : "Ugyanabba a keretbe (_self)", + "Target:" : "Cél:", + "Title (tooltip):" : "Cím (tooltip):", + "Top frame (_top)" : "Felső keret (_top)", + "URL:" : "URL:", + "You must enter the URL where this link points to" : "Be kell írnia az URL-t, ahova a hivatkozás mutasson" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/it.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/it.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/it.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/it.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,36 +1,79 @@ -// I18N constants - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "it", - - tooltips: { - bold: "Grassetto", - italic: "Corsivo", - underline: "Sottolineato", - strikethrough: "Barrato", - subscript: "Pedice", - superscript: "Apice", - justifyleft: "Allinea a sinistra", - justifycenter: "Centra", - justifyright: "Allinea a destra", - justifyfull: "Giustifica", - orderedlist: "Elenco numerato", - unorderedlist: "Elenco puntato", - outdent: "Riduci rientro", - indent: "Aumenta rientro", - forecolor: "Colore carattere", - backcolor: "Colore di sfondo", - horizontalrule: "Linea orizzontale", - createlink: "Inserisci collegamento ipertestuale", - insertimage: "Inserisci immagine", - inserttable: "Inserisci tabella", - htmlmode: "Passa alla visualizzazione HTML", - popupeditor: "Ingrandisci editor", - about: "Info", - help: "Aiuto", - textindicator: "Stile utilizzato" - } -}; +// I18N constants + +// LANG: "it", ENCODING: UTF-8 | ISO-8859-1 +// Author: Fabio Rotondo +// Update for 3.0 rc1: Giovanni Premuda + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "it", + + tooltips: { + bold: "Grassetto", + italic: "Corsivo", + underline: "Sottolineato", + strikethrough: "Barrato", + subscript: "Pedice", + superscript: "Apice", + justifyleft: "Allinea a sinistra", + justifycenter: "Allinea in centro", + justifyright: "Allinea a destra", + justifyfull: "Giustifica", + insertorderedlist: "Lista ordinata", + insertunorderedlist: "Lista puntata", + outdent: "Decrementa indentazione", + indent: "Incrementa indentazione", + forecolor: "Colore del carattere", + hilitecolor: "Colore di sfondo", + inserthorizontalrule: "Linea orizzontale", + createlink: "Inserisci un link", + insertimage: "Inserisci un'immagine", + inserttable: "Inserisci una tabella", + htmlmode: "Visualizzazione HTML", + popupeditor: "Editor a pieno schermo", + about: "Info sull'editor", + showhelp: "Aiuto sull'editor", + textindicator: "Stile corrente", + undo: "Annulla", + redo: "Ripristina", + cut: "Taglia", + copy: "Copia", + paste: "Incolla", + lefttoright: "Scrivi da sinistra a destra", + righttoleft: "Scrivi da destra a sinistra" + }, + + buttons: { + "ok": "OK", + "cancel": "Annulla" + }, + + msg: { + "Path": "Percorso", + "TEXT_MODE": "Sei in MODALITA' TESTO. Usa il bottone [<>] per tornare alla modalità WYSIWYG.", + "IE-sucks-full-screen" : + // translate here + "The full screen mode is known to cause problems with Internet Explorer, " + + "due to browser bugs that we weren't able to workaround. You might experience garbage " + + "display, lack of editor functions and/or random browser crashes. If your system is Windows 9x " + + "it's very likely that you'll get a 'General Protection Fault' and need to reboot.\n\n" + + "You have been warned. Please press OK if you still want to try the full screen editor." + }, + + dialogs: { + "Annulla" : "Cancel", + "Inserisci/modifica Link" : "Insert/Modify Link", + "Nuova finestra (_blank)" : "New window (_blank)", + "Nessuno (usa predefinito)" : "None (use implicit)", + "OK" : "OK", + "Altro" : "Other", + "Stessa finestra (_self)" : "Same frame (_self)", + "Target:" : "Target:", + "Title (suggerimento):" : "Title (tooltip):", + "Frame principale (_top)" : "Top frame (_top)", + "URL:" : "URL:", + "You must enter the URL where this link points to" : "Devi inserire un indirizzo per questo link" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-euc.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-euc.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-euc.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-euc.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,37 +1,37 @@ -// I18N constants -- Japanese EUC -// by Manabu Onoue -- tmocsys@tmocsys.com - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "ja-euc", - - tooltips: { - bold: "����", - italic: "����", - underline: "����", - strikethrough: "�Ǥ��ä���", - subscript: "���դ�ź����", - superscript: "���դ�ź����", - justifyleft: "����", - justifycenter: "�����", - justifyright: "����", - justifyfull: "��������", - orderedlist: "�ֹ��դ��վ��", - unorderedlist: "�����դ��վ��", - outdent: "����ǥ�Ȳ��", - indent: "����ǥ������", - forecolor: "ʸ����", - backcolor: "�طʿ�", - horizontalrule: "��ʿ��", - createlink: "��󥯺���", - insertimage: "��������", - inserttable: "�ơ��֥�����", - htmlmode: "HTMLɽ������", - popupeditor: "���ǥ�������", - about: "�С���������", - help: "�إ��", - textindicator: "���ߤΥ�������" - } -}; +// I18N constants -- Japanese EUC +// by Manabu Onoue -- tmocsys@tmocsys.com + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "ja-euc", + + tooltips: { + bold: "����", + italic: "����", + underline: "����", + strikethrough: "�Ǥ��ä���", + subscript: "���դ�ź����", + superscript: "���դ�ź����", + justifyleft: "����", + justifycenter: "�����", + justifyright: "����", + justifyfull: "��������", + orderedlist: "�ֹ��դ��վ��", + unorderedlist: "�����դ��վ��", + outdent: "����ǥ�Ȳ��", + indent: "����ǥ������", + forecolor: "ʸ����", + backcolor: "�طʿ�", + horizontalrule: "��ʿ��", + createlink: "��󥯺���", + insertimage: "��������", + inserttable: "�ơ��֥�����", + htmlmode: "HTMLɽ������", + popupeditor: "���ǥ�������", + about: "�С���������", + help: "�إ��", + textindicator: "���ߤΥ�������" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-jis.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-jis.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-jis.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-jis.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,37 +1,37 @@ -// I18N constants -- Japanese JIS -// by Manabu Onoue -- tmocsys@tmocsys.com - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "ja-jis", - - tooltips: { - bold: "$BB@;z(B", - italic: "$BC$7@~(B", - subscript: "$B2eIU$-E:$(;z(B", - justifyleft: "$B:84s$;(B", - justifycenter: "$BCf1{4s$;(B", - justifyright: "$B1&4s$;(B", - justifyfull: "$B6QEy3dIU(B", - orderedlist: "$BHV9fIU$-2U>r=q$-(B", - unorderedlist: "$B5-9fIU$-2U>r=q$-(B", - outdent: "$B%$%s%G%s%H2r=|(B", - indent: "$B%$%s%G%s%H@_Dj(B", - forecolor: "$BJ8;z?'(B", - backcolor: "$BGX7J?'(B", - horizontalrule: "$B?eJ?@~(B", - createlink: "$B%j%s%/:n@.(B", - insertimage: "$B2hA|A^F~(B", - inserttable: "$B%F!<%V%kA^F~(B", - htmlmode: "HTML$BI=<(@ZBX(B", - popupeditor: "$B%(%G%#%?3HBg(B", - about: "$B%P!<%8%g%s>pJs(B", - help: "$B%X%k%W(B", - textindicator: "$B8=:_$N%9%?%$%k(B" - } -}; +// I18N constants -- Japanese JIS +// by Manabu Onoue -- tmocsys@tmocsys.com + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "ja-jis", + + tooltips: { + bold: "$BB@;z(B", + italic: "$BC$7@~(B", + subscript: "$B2eIU$-E:$(;z(B", + justifyleft: "$B:84s$;(B", + justifycenter: "$BCf1{4s$;(B", + justifyright: "$B1&4s$;(B", + justifyfull: "$B6QEy3dIU(B", + orderedlist: "$BHV9fIU$-2U>r=q$-(B", + unorderedlist: "$B5-9fIU$-2U>r=q$-(B", + outdent: "$B%$%s%G%s%H2r=|(B", + indent: "$B%$%s%G%s%H@_Dj(B", + forecolor: "$BJ8;z?'(B", + backcolor: "$BGX7J?'(B", + horizontalrule: "$B?eJ?@~(B", + createlink: "$B%j%s%/:n@.(B", + insertimage: "$B2hA|A^F~(B", + inserttable: "$B%F!<%V%kA^F~(B", + htmlmode: "HTML$BI=<(@ZBX(B", + popupeditor: "$B%(%G%#%?3HBg(B", + about: "$B%P!<%8%g%s>pJs(B", + help: "$B%X%k%W(B", + textindicator: "$B8=:_$N%9%?%$%k(B" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-sjis.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-sjis.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-sjis.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-sjis.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,37 +1,37 @@ -// I18N constants -- Japanese Shift-JIS -// by Manabu Onoue -- tmocsys@tmocsys.com - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "ja-sjis", - - tooltips: { - bold: "����", - italic: "�Α�", - underline: "����", - strikethrough: "�ł�������", - subscript: "���t���Y����", - superscript: "��t���Y����", - justifyleft: "����", - justifycenter: "������", - justifyright: "�E��", - justifyfull: "�ϓ����t", - orderedlist: "�ԍ��t���ӏ�����", - unorderedlist: "�L���t���ӏ�����", - outdent: "�C���f���g����", - indent: "�C���f���g�ݒ�", - forecolor: "�����F", - backcolor: "�w�i�F", - horizontalrule: "������", - createlink: "�����N�쐬", - insertimage: "�摜�}��", - inserttable: "�e�[�u���}��", - htmlmode: "HTML�\���ؑ�", - popupeditor: "�G�f�B�^�g��", - about: "�o�[�W�������", - help: "�w���v", - textindicator: "���݂̃X�^�C��" - } -}; +// I18N constants -- Japanese Shift-JIS +// by Manabu Onoue -- tmocsys@tmocsys.com + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "ja-sjis", + + tooltips: { + bold: "����", + italic: "�Α�", + underline: "����", + strikethrough: "�ł�������", + subscript: "���t���Y����", + superscript: "��t���Y����", + justifyleft: "����", + justifycenter: "������", + justifyright: "�E��", + justifyfull: "�ϓ����t", + orderedlist: "�ԍ��t���ӏ�����", + unorderedlist: "�L���t���ӏ�����", + outdent: "�C���f���g����", + indent: "�C���f���g�ݒ�", + forecolor: "�����F", + backcolor: "�w�i�F", + horizontalrule: "������", + createlink: "�����N�쐬", + insertimage: "�摜�}��", + inserttable: "�e�[�u���}��", + htmlmode: "HTML�\���ؑ�", + popupeditor: "�G�f�B�^�g��", + about: "�o�[�W�������", + help: "�w���v", + textindicator: "���݂̃X�^�C��" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-utf8.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-utf8.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-utf8.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ja-utf8.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,37 +1,37 @@ -// I18N constants -- Japanese UTF-8 -// by Manabu Onoue -- tmocsys@tmocsys.com - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "ja-utf8", - - tooltips: { - bold: "太字", - italic: "斜体", - underline: "下線", - strikethrough: "打ち消し線", - subscript: "下付き添え字", - superscript: "上付き添え字", - justifyleft: "左寄せ", - justifycenter: "中央寄せ", - justifyright: "右寄せ", - justifyfull: "均等割付", - orderedlist: "番号付き箇条書き", - unorderedlist: "記号付き箇条書き", - outdent: "インデント解除", - indent: "インデント設定", - forecolor: "文字色", - backcolor: "背景色", - horizontalrule: "水平線", - createlink: "リンク作成", - insertimage: "画像挿入", - inserttable: "テーブル挿入", - htmlmode: "HTML表示切替", - popupeditor: "エディタ拡大", - about: "バージョン情報", - help: "ヘルプ", - textindicator: "現在のスタイル" - } -}; +// I18N constants -- Japanese UTF-8 +// by Manabu Onoue -- tmocsys@tmocsys.com + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "ja-utf8", + + tooltips: { + bold: "太字", + italic: "斜体", + underline: "下線", + strikethrough: "打ち消し線", + subscript: "下付き添え字", + superscript: "上付き添え字", + justifyleft: "左寄せ", + justifycenter: "中央寄せ", + justifyright: "右寄せ", + justifyfull: "均等割付", + orderedlist: "番号付き箇条書き", + unorderedlist: "記号付き箇条書き", + outdent: "インデント解除", + indent: "インデント設定", + forecolor: "文字色", + backcolor: "背景色", + horizontalrule: "水平線", + createlink: "リンク作成", + insertimage: "画像挿入", + inserttable: "テーブル挿入", + htmlmode: "HTML表示切替", + popupeditor: "エディタ拡大", + about: "バージョン情報", + help: "ヘルプ", + textindicator: "現在のスタイル" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/lt.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/lt.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/lt.js 30 Jan 2005 16:13:27 -0000 1.1 @@ -0,0 +1,77 @@ +// I18N constants + +// LANG: "lt", ENCODING: UTF-8 +// Author: Jaroslav Šatkevič, + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "en", + + tooltips: { + bold: "Paryškinti", + italic: "Kursyvas", + underline: "Pabraukti", + strikethrough: "Perbraukti", + subscript: "Apatinis indeksas", + superscript: "Viršutinis indeksas", + justifyleft: "Lygiavimas pagal kairę", + justifycenter: "Lygiavimas pagal centrą", + justifyright: "Lygiavimas pagal dešinę", + justifyfull: "Lygiuoti pastraipą", + orderedlist: "Numeruotas sąrašas", + unorderedlist: "Suženklintas sąrašas", + outdent: "Sumažinti paraštę", + indent: "Padidinti paraštę", + forecolor: "Šrifto spalva", + hilitecolor: "Fono spalva", + horizontalrule: "Horizontali linija", + createlink: "Įterpti nuorodą", + insertimage: "Įterpti paveiksliuką", + inserttable: "Įterpti lentelę", + htmlmode: "Perjungti į HTML/WYSIWYG", + popupeditor: "Išplėstas redagavimo ekranas/Enlarge Editor", + about: "Apie redaktorių", + showhelp: "Pagalba naudojant redaktorių", + textindicator: "Dabartinis stilius", + undo: "Atšaukia paskutini jūsų veiksmą", + redo: "Pakartoja paskutinį atšauktą jūsų veiksmą", + cut: "Iškirpti", + copy: "Kopijuoti", + paste: "Įterpti" +}, + + buttons: { + "ok": "OK", + "cancel": "Atšaukti" + }, + + msg: { + "Path": "Kelias", + "TEXT_MODE": "Jūs esete teksto režime. Naudokite [<>] mygtuką grįžimui į WYSIWYG.", + + "IE-sucks-full-screen" : + // translate here + "The full screen mode is known to cause problems with Internet Explorer, " + + "due to browser bugs that we weren't able to workaround. You might experience garbage " + + "display, lack of editor functions and/or random browser crashes. If your system is Windows 9x " + + "it's very likely that you'll get a 'General Protection Fault' and need to reboot.\n\n" + + "You have been warned. Please press OK if you still want to try the full screen editor." + }, + + dialogs: { + "Cancel" : "Atšaukti", + "Insert/Modify Link" : "Idėti/Modifikuoti", + "New window (_blank)" : "Naujas langas (_blank)", + "None (use implicit)" : "None (use implicit)", + "OK" : "OK", + "Other" : "Kitas", + "Same frame (_self)" : "Same frame (_self)", + "Target:" : "Target:", + "Title (tooltip):" : "Pavadinimas (tooltip):", + "Top frame (_top)" : "Top frame (_top)", + "URL:" : "URL:", + "You must enter the URL where this link points to" : "Jus privalote nurodyti URL į kuri rodo šitą nuoroda" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/lv.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/lv.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/lv.js 30 Jan 2005 16:13:27 -0000 1.1 @@ -0,0 +1,110 @@ +// I18N constants + + + +// LANG: "lv", ENCODING: UTF-8 | ISO-8859-1 + +// Author: Mihai Bazon, http://dynarch.com/mishoo + +// Translated by: Janis Klavins, + + + +HTMLArea.I18N = { + + + + // the following should be the filename without .js extension + + // it will be used for automatically load plugin language. + + lang: "lv", + + + + tooltips: { + + bold: "Trekniem burtiem", + + italic: "Kurs�v�", + + underline: "Pasv�trots", + + strikethrough: "P�rsv�trots", + + subscript: "Novietot zem rindas", + + superscript: "Novietot virs rindas", + + justifyleft: "Izl�dzin�t pa kreisi", + + justifycenter: "Izl�dzin�t centr�", + + justifyright: "Izl�dzin�t pa labi", + + justifyfull: "Izl�dzin�t pa visu lapu", + + orderedlist: "Numur�ts saraksts", + + unorderedlist: "Saraksts", + + outdent: "Samazin�t atk�pi", + + indent: "Palielin�t atk�pi", + + forecolor: "Burtu kr�sa", + + hilitecolor: "Fona kr�sa", + + horizontalrule: "Horizont�la atdal�t�jsv�tra", + + createlink: "Ievietot hipersaiti", + + insertimage: "Ievietot att�lu", + + inserttable: "Ievietot tabulu", + + htmlmode: "Skat�t HTML kodu", + + popupeditor: "Palielin�t Redi��t�ju", + + about: "Par �o redi��t�ju", + + showhelp: "Redi��t�ja pal�gs", + + textindicator: "Patreiz�jais stils", + + undo: "Atcelt p�d�jo darb�bu", + + redo: "Atk�rtot p�d�jo darb�bu", + + cut: "Izgriezt iez�m�to", + + copy: "Kop�t iez�m�to", + + paste: "Ievietot iez�m�to" + + }, + + + + buttons: { + + "ok": "Labi", + + "cancel": "Atcelt" + + }, + + + + msg: { + + "Path": "Ce��", + + "TEXT_MODE": "J�s patlaban darbojaties TEKSTA RE��M�. Lai p�rietu atpaka� uz GRAFISKO RE��MU (WYSIWIG), lietojiet [<>] pogu." + + } + +}; + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/nb.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/nb.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/nb.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/nb.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,36 +1,36 @@ -// I18N constants - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "nb", - - tooltips: { - bold: "Fet", - italic: "Kursiv", - underline: "Understreket", - strikethrough: "Gjennomstreket", - subscript: "Senket", - superscript: "Hevet", - justifyleft: "Venstrejuster", - justifycenter: "Midtjuster", - justifyright: "H�yrejuster", - justifyfull: "Blokkjuster", - orderedlist: "Nummerert liste", - unorderedlist: "Punktmerket liste", - outdent: "�ke innrykk", - indent: "Reduser innrykk", - forecolor: "Skriftfarge", - backcolor: "Bakgrunnsfarge", - horizontalrule: "Horisontal linje", - createlink: "Sett inn lenke", - insertimage: "Sett inn bilde", - inserttable: "Sett inn tabell", - htmlmode: "Vis HTML kode", - popupeditor: "Forst�rr redigeringsvindu", - about: "Om..", - help: "Hjelp", - textindicator: "Gjeldende stil" - } -}; +// I18N constants + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "nb", + + tooltips: { + bold: "Fet", + italic: "Kursiv", + underline: "Understreket", + strikethrough: "Gjennomstreket", + subscript: "Senket", + superscript: "Hevet", + justifyleft: "Venstrejuster", + justifycenter: "Midtjuster", + justifyright: "H�yrejuster", + justifyfull: "Blokkjuster", + orderedlist: "Nummerert liste", + unorderedlist: "Punktmerket liste", + outdent: "�ke innrykk", + indent: "Reduser innrykk", + forecolor: "Skriftfarge", + backcolor: "Bakgrunnsfarge", + horizontalrule: "Horisontal linje", + createlink: "Sett inn lenke", + insertimage: "Sett inn bilde", + inserttable: "Sett inn tabell", + htmlmode: "Vis HTML kode", + popupeditor: "Forst�rr redigeringsvindu", + about: "Om..", + help: "Hjelp", + textindicator: "Gjeldende stil" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/nl.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/nl.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/nl.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/nl.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,37 +1,180 @@ -// Dutch version -// Author: Wouter Meeus alias Redspider - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "nl", - - tooltips: { - bold: "Vet", - italic: "Cursief", - underline: "Onderlijnen", - strikethrough: "Doorstrepen", - subscript: "Subscript", - superscript: "Superscript", - justifyleft: "Links Uitlijnen", - justifycenter: "Centreren", - justifyright: "Rechts Uitlijnen", - justifyfull: "Uitvullen", - orderedlist: "Nummering", - unorderedlist: "Opsomming", - outdent: "Verklein insprong", - indent: "Vergroot insprong", - forecolor: "Tekst Kleur", - backcolor: "Achtergrond Kleur", - horizontalrule: "Horizontale lijn", - createlink: "Hyperlink invoegen", - insertimage: "Afbeelding invoegen", - inserttable: "Tabel invoegen", - htmlmode: "HTML broncode", - popupeditor: "Vergroot Editor", - about: "Over deze editor", - help: "Help", - textindicator: "Huidige stijl" - } -}; +// I18N constants + + + +// LANG: "nl", ENCODING: UTF-8 | ISO-8859-1 + +// Author: Michel Weegeerink (info@mmc-shop.nl), http://mmc-shop.nl + + + +// FOR TRANSLATORS: + +// + +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE + +// (at least a valid email address) + +// + +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; + +// (if this is not possible, please include a comment + +// that states what encoding is necessary.) + + + +HTMLArea.I18N = { + + + + // the following should be the filename without .js extension + + // it will be used for automatically load plugin language. + + lang: "nl", + + + + tooltips: { + + bold: "Vet", + + italic: "Cursief", + + underline: "Onderstrepen", + + strikethrough: "Doorhalen", + + subscript: "Subscript", + + superscript: "Superscript", + + justifyleft: "Links uitlijnen", + + justifycenter: "Centreren", + + justifyright: "Rechts uitlijnen", + + justifyfull: "Uitvullen", + + orderedlist: "Nummering", + + unorderedlist: "Opsommingstekens", + + outdent: "Inspringing verkleinen", + + indent: "Inspringing vergroten", + + forecolor: "Tekstkleur", + + hilitecolor: "Achtergrondkleur", + + inserthorizontalrule: "Horizontale lijn", + + createlink: "Hyperlink invoegen/aanpassen", + + insertimage: "Afbeelding invoegen/aanpassen", + + inserttable: "Tabel invoegen", + + htmlmode: "HTML broncode", + + popupeditor: "Vergroot Editor", + + about: "Over deze editor", + + showhelp: "HTMLArea help", + + textindicator: "Huidige stijl", + + undo: "Ongedaan maken", + + redo: "Herhalen", + + cut: "Knippen", + + copy: "Kopi�ren", + + paste: "Plakken", + + lefttoright: "Tekstrichting links naar rechts", + + righttoleft: "Tekstrichting rechts naar links" + + }, + + + + buttons: { + + "ok": "OK", + + "cancel": "Annuleren" + + }, + + + + msg: { + + "Path": "Pad", + + "TEXT_MODE": "Je bent in TEKST-mode. Gebruik de [<>] knop om terug te keren naar WYSIWYG-mode.", + + + + "IE-sucks-full-screen" : + + // translate here + + "Fullscreen-mode veroorzaakt problemen met Internet Explorer door bugs in de webbrowser " + + + "die we niet kunnen omzeilen. Hierdoor kunnen de volgende effecten optreden: verknoeide teksten, " + + + "een verlies aan editor-functionaliteit en/of willekeurig vastlopen van de webbrowser. " + + + "Als u Windows 95 of 98 gebruikt, is het zeer waarschijnlijk dat u een algemene beschermingsfout " + + + "('General Protection Fault') krijgt en de computer opnieuw zal moeten opstarten.\n\n" + + + "U bent gewaarschuwd. Druk OK als u toch nog de Fullscreen-editor wil gebruiken." + + }, + + + + dialogs: { + + "Cancel" : "Annuleren", + + "Insert/Modify Link" : "Hyperlink invoegen/aanpassen", + + "New window (_blank)" : "Nieuw venster (_blank)", + + "None (use implicit)" : "Geen", + + "OK" : "OK", + + "Other" : "Ander", + + "Same frame (_self)" : "Zelfde frame (_self)", + + "Target:" : "Doel:", + + "Title (tooltip):" : "Titel (tooltip):", + + "Top frame (_top)" : "Bovenste frame (_top)", + + "URL:" : "URL:", + + "You must enter the URL where this link points to" : "Geef de URL in waar de link naar verwijst" + + } + +}; + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/no.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/no.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/no.js 30 Jan 2005 16:13:27 -0000 1.1 @@ -0,0 +1,158 @@ +// Norwegian version for htmlArea v3.0 - pre1 + +// - translated by ses + +// Additional translations by H�vard Wigtil + +// term�s and licenses are equal to htmlarea! + + + +HTMLArea.I18N = { + + + + // the following should be the filename without .js extension + + // it will be used for automatically load plugin language. + + lang: "no", + + + + tooltips: { + + bold: "Fet", + + italic: "Kursiv", + + underline: "Understreket", + + strikethrough: "Gjennomstreket", + + subscript: "Nedsenket", + + superscript: "Opph�yet", + + justifyleft: "Venstrejuster", + + justifycenter: "Midtjuster", + + justifyright: "H�yrejuster", + + justifyfull: "Blokkjuster", + + orderedlist: "Nummerert liste", + + unorderedlist: "Punktliste", + + outdent: "Reduser innrykk", + + indent: "�ke innrykk", + + forecolor: "Tekstfarge", + + hilitecolor: "Bakgrundsfarge", + + inserthorizontalrule: "Vannrett linje", + + createlink: "Lag lenke", + + insertimage: "Sett inn bilde", + + inserttable: "Sett inn tabell", + + htmlmode: "Vis kildekode", + + popupeditor: "Vis i eget vindu", + + about: "Om denne editor", + + showhelp: "Hjelp", + + textindicator: "N�v�rende stil", + + undo: "Angrer siste redigering", + + redo: "Gj�r om siste angring", + + cut: "Klipp ut omr�de", + + copy: "Kopier omr�de", + + paste: "Lim inn", + + lefttoright: "Fra venstre mot h�yre", + + righttoleft: "Fra h�yre mot venstre" + + }, + + + + buttons: { + + "ok": "OK", + + "cancel": "Avbryt" + + }, + + + + msg: { + + "Path": "Tekstvelger", + + "TEXT_MODE": "Du er i tekstmodus Klikk p� [<>] for � g� tilbake til WYSIWIG.", + + "IE-sucks-full-screen" : + + // translate here + + "Visning i eget vindu har kjente problemer med Internet Explorer, " + + + "p� grunn av problemer med denne nettleseren. Mulige problemer er et uryddig " + + + "skjermbilde, manglende editorfunksjoner og/eller at nettleseren crasher. Hvis du bruker Windows 95 eller Windows 98 " + + + "er det ogs� muligheter for at Windows will crashe.\n\n" + + + "Trykk 'OK' hvis du vil bruke visning i eget vindu p� tross av denne advarselen." + + }, + + + + dialogs: { + + "Cancel" : "Avbryt", + + "Insert/Modify Link" : "Rediger lenke", + + "New window (_blank)" : "Eget vindu (_blank)", + + "None (use implicit)" : "Ingen (bruk standardinnstilling)", + + "OK" : "OK", + + "Other" : "Annen", + + "Same frame (_self)" : "Samme ramme (_self)", + + "Target:" : "M�l:", + + "Title (tooltip):" : "Tittel (tooltip):", + + "Top frame (_top)" : "Toppramme (_top)", + + "URL:" : "Adresse:", + + "You must enter the URL where this link points to" : "Du m� skrive inn en adresse som denne lenken skal peke til" + + } + +}; + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/pl.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/pl.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/pl.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/pl.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,36 +1,67 @@ -// I18N constants +// I18N constants -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "pl", - - tooltips: { - bold: "Pogrubienie", - italic: "Pochylenie", - underline: "Podkre�lenie", - strikethrough: "Przekre�lenie", - subscript: "Indeks dolny", - superscript: "Indeks g�rny", - justifyleft: "Wyr�wnaj do lewej", - justifycenter: "Wy�rodkuj", - justifyright: "Wyr�wnaj do prawej", - justifyfull: "Wyjustuj", - orderedlist: "Numerowanie", - unorderedlist: "Wypunktowanie", - outdent: "Zmniejsz wci�cie", - indent: "Zwi�ksz wci�cie", - forecolor: "Kolor czcionki", - backcolor: "Kolor t�a", - horizontalrule: "Linia pozioma", - createlink: "Wstaw adres sieci Web", - insertimage: "Wstaw obraz", - inserttable: "Wstaw tabel�", - htmlmode: "Edycja WYSIWYG/w �r�dle strony", - popupeditor: "Pe�ny ekran", - about: "Informacje o tym edytorze", - help: "Pomoc", - textindicator: "Obecny styl" - } -}; + + +HTMLArea.I18N = { + + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "pl", + + tooltips: { + + bold: "Pogrubienie", + + italic: "Pochylenie", + + underline: "Podkre�lenie", + + strikethrough: "Przekre�lenie", + + subscript: "Indeks dolny", + + superscript: "Indeks g�rny", + + justifyleft: "Wyr�wnaj do lewej", + + justifycenter: "Wy�rodkuj", + + justifyright: "Wyr�wnaj do prawej", + + justifyfull: "Wyjustuj", + + orderedlist: "Numerowanie", + + unorderedlist: "Wypunktowanie", + + outdent: "Zmniejsz wci�cie", + + indent: "Zwi�ksz wci�cie", + + forecolor: "Kolor czcionki", + + backcolor: "Kolor t�a", + + horizontalrule: "Linia pozioma", + + createlink: "Wstaw adres sieci Web", + + insertimage: "Wstaw obraz", + + inserttable: "Wstaw tabel�", + + htmlmode: "Edycja WYSIWYG/w �r�dle strony", + + popupeditor: "Pe�ny ekran", + + about: "Informacje o tym edytorze", + + help: "Pomoc", + + textindicator: "Obecny styl" + + } + +}; + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/pt_br.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/pt_br.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/pt_br.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/pt_br.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,37 +1,69 @@ -// I18N constants -// Brazilian Portuguese Translation by Alex Piaz +// I18N constants -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "pt_br", - - tooltips: { - bold: "Negrito", - italic: "It�lico", - underline: "Sublinhado", - strikethrough: "Tachado", - subscript: "Subescrito", - superscript: "Sobrescrito", - justifyleft: "Alinhar � Esquerda", - justifycenter: "Centralizar", - justifyright: "Alinhar � Direita", - justifyfull: "Justificar", - orderedlist: "Lista Numerada", - unorderedlist: "Lista Marcadores", - outdent: "Diminuir Indenta��o", - indent: "Aumentar Indenta��o", - forecolor: "Cor da Fonte", - backcolor: "Cor do Fundo", - horizontalrule: "Linha Horizontal", - createlink: "Inserir Link", - insertimage: "Inserir Imagem", - inserttable: "Inserir Tabela", - htmlmode: "Ver C�digo-Fonte", - popupeditor: "Expandir Editor", - about: "Sobre", - help: "Ajuda", - textindicator: "Estilo Atual" - } -}; +// Brazilian Portuguese Translation by Alex Piaz + + + +HTMLArea.I18N = { + + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "pt_br", + + tooltips: { + + bold: "Negrito", + + italic: "It�lico", + + underline: "Sublinhado", + + strikethrough: "Tachado", + + subscript: "Subescrito", + + superscript: "Sobrescrito", + + justifyleft: "Alinhar � Esquerda", + + justifycenter: "Centralizar", + + justifyright: "Alinhar � Direita", + + justifyfull: "Justificar", + + orderedlist: "Lista Numerada", + + unorderedlist: "Lista Marcadores", + + outdent: "Diminuir Indenta��o", + + indent: "Aumentar Indenta��o", + + forecolor: "Cor da Fonte", + + backcolor: "Cor do Fundo", + + horizontalrule: "Linha Horizontal", + + createlink: "Inserir Link", + + insertimage: "Inserir Imagem", + + inserttable: "Inserir Tabela", + + htmlmode: "Ver C�digo-Fonte", + + popupeditor: "Expandir Editor", + + about: "Sobre", + + help: "Ajuda", + + textindicator: "Estilo Atual" + + } + +}; + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ro.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ro.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ro.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ro.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,63 +1,80 @@ -// I18N constants - -// LANG: "ro", ENCODING: UTF-8 -// Author: Mihai Bazon, - -// FOR TRANSLATORS: -// -// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE -// (at least a valid email address) -// -// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; -// (if this is not possible, please include a comment -// that states what encoding is necessary.) - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "ro", - - tooltips: { - bold: "Îngroşat", - italic: "Italic", - underline: "Subliniat", - strikethrough: "Tăiat", - subscript: "Subscript", - superscript: "Superscript", - justifyleft: "Aliniere la stânga", - justifycenter: "Aliniere pe centru", - justifyright: "Aliniere la dreapta", - justifyfull: "Aliniere în ambele părţi", - orderedlist: "Listă ordonată", - unorderedlist: "Listă marcată", - outdent: "Micşorează alineatul", - indent: "Măreşte alineatul", - forecolor: "Culoarea textului", - hilitecolor: "Culoare de fundal", - horizontalrule: "Linie orizontală", - createlink: "Inserează link", - insertimage: "Inserează o imagine", - inserttable: "Inserează un tabel", - htmlmode: "Sursa HTML / WYSIWYG", - popupeditor: "Maximizează editorul", - about: "Despre editor", - showhelp: "Documentaţie (devel)", - textindicator: "Stilul curent", - undo: "Anulează ultima acţiune", - redo: "Reface ultima acţiune anulată", - cut: "Taie în clipboard", - copy: "Copie în clipboard", - paste: "Aduce din clipboard" - }, - - buttons: { - "ok": "OK", - "cancel": "Anulează" - }, - - msg: { - "Path": "Calea", - "TEXT_MODE": "Eşti în modul TEXT. Apasă butonul [<>] pentru a te întoarce în modul WYSIWYG." - } -}; +// I18N constants + +// LANG: "ro", ENCODING: UTF-8 +// Author: Mihai Bazon, http://dynarch.com/mishoo + +// FOR TRANSLATORS: +// +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE +// (at least a valid email address) +// +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; +// (if this is not possible, please include a comment +// that states what encoding is necessary.) + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "ro", + + tooltips: { + bold: "Îngroşat", + italic: "Italic", + underline: "Subliniat", + strikethrough: "Tăiat", + subscript: "Indice jos", + superscript: "Indice sus", + justifyleft: "Aliniere la stânga", + justifycenter: "Aliniere pe centru", + justifyright: "Aliniere la dreapta", + justifyfull: "Aliniere în ambele părţi", + orderedlist: "Listă ordonată", + unorderedlist: "Listă marcată", + outdent: "Micşorează alineatul", + indent: "Măreşte alineatul", + forecolor: "Culoarea textului", + hilitecolor: "Culoare de fundal", + horizontalrule: "Linie orizontală", + createlink: "Inserează/modifică link", + insertimage: "Inserează/modifică imagine", + inserttable: "Inserează un tabel", + htmlmode: "Sursa HTML / WYSIWYG", + popupeditor: "Maximizează editorul", + about: "Despre editor", + showhelp: "Documentaţie (devel)", + textindicator: "Stilul curent", + undo: "Anulează ultima acţiune", + redo: "Reface ultima acţiune anulată", + cut: "Taie în clipboard", + copy: "Copie în clipboard", + paste: "Aduce din clipboard", + lefttoright: "Direcţia de scriere: stânga - dreapta", + righttoleft: "Direcţia de scriere: dreapta - stânga" + }, + + buttons: { + "ok": "OK", + "cancel": "Anulează" + }, + + msg: { + "Path": "Calea", + "TEXT_MODE": "Eşti în modul TEXT. Apasă butonul [<>] pentru a te întoarce în modul WYSIWYG." + }, + + dialogs: { + "Cancel" : "Renunţă", + "Insert/Modify Link" : "Inserează/modifcă link", + "New window (_blank)" : "Fereastră nouă (_blank)", + "None (use implicit)" : "Nimic (foloseşte ce-i implicit)", + "OK" : "Acceptă", + "Other" : "Alt target", + "Same frame (_self)" : "Aceeaşi fereastră (_self)", + "Target:" : "Ţinta:", + "Title (tooltip):" : "Titlul (tooltip):", + "Top frame (_top)" : "Fereastra principală (_top)", + "URL:" : "URL:", + "You must enter the URL where this link points to" : "Trebuie să introduceţi un URL" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ru.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ru.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ru.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/ru.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,36 +1,126 @@ -// I18N constants - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "ru", - - tooltips: { - bold: "������", - italic: "���������", - underline: "������������", - strikethrough: "�������������", - subscript: "������ ������", - superscript: "������� ������", - justifyleft: "������������ �� ������ ����", - justifycenter: "������������ �� ������", - justifyright: "������������ �� ������� ����", - justifyfull: "���������� �����", - orderedlist: "������������ ������", - unorderedlist: "������������� ������", - outdent: "����� � ����", - indent: "����� � �����", - forecolor: "���� ������", - backcolor: "���� ����", - horizontalrule: "�������������� �����", - createlink: "�������� ������", - insertimage: "�������� ��������", - inserttable: "�������� �������", - htmlmode: "������ HTML ���", - popupeditor: "��������� ��������", - about: "� ���������", - help: "������ � �������������", - textindicator: "������ �����" - } -}; +// I18N constants + + + +// LANG: "ru", ENCODING: UTF-8 | ISO-8859-1 + +// Author: Yulya Shtyryakova, + + + +// FOR TRANSLATORS: + +// + +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE + +// (at least a valid email address) + +// + +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; + +// (if this is not possible, please include a comment + +// that states what encoding is necessary.) + + + +HTMLArea.I18N = { + + + + // the following should be the filename without .js extension + + // it will be used for automatically load plugin language. + + lang: "ru", + + + + tooltips: { + + bold: "Полужирный", + + italic: "Наклонный", + + underline: "Подчеркнутый", + + strikethrough: "Перечеркнутый", + + subscript: "Нижний индекс", + + superscript: "Верхний индекс", + + justifyleft: "По левому краю", + + justifycenter: "По центру", + + justifyright: "По правому краю", + + justifyfull: "По ширине", + + orderedlist: "Нумерованный лист", + + unorderedlist: "Маркированный лист", + + outdent: "Уменьшить отступ", + + indent: "Увеличить отступ", + + forecolor: "Цвет шрифта", + + hilitecolor: "Цвет фона", + + horizontalrule: "Горизонтальный разделитель", + + createlink: "Вставить гиперссылку", + + insertimage: "Вставить изображение", + + inserttable: "Вставить таблицу", + + htmlmode: "Показать Html-код", + + popupeditor: "Увеличить редактор", + + about: "О редакторе", + + showhelp: "Помощь", + + textindicator: "Текущий стиль", + + undo: "Отменить", + + redo: "Повторить", + + cut: "Вырезать", + + copy: "Копировать", + + paste: "Вставить" + + }, + + + + buttons: { + + "ok": "OK", + + "cancel": "Отмена" + + }, + + + + msg: { + + "Path": "Путь", + + "TEXT_MODE": "Вы в режиме отображения Html-кода. нажмите кнопку [<>], чтобы переключиться в визуальный режим." + + } + +}; + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/se.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/se.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/se.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/se.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,38 +1,71 @@ -// Swedish version for htmlArea v3.0 - Alpha Release -// - translated by pat -// term�s and licenses are equal to htmlarea! +// Swedish version for htmlArea v3.0 - Alpha Release -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "se", - - tooltips: { - bold: "Fet", - italic: "Kursiv", - underline: "Understruken", - strikethrough: "Genomstruken", - subscript: "Neds�nkt", - superscript: "Upph�jd", - justifyleft: "V�nsterjustera", - justifycenter: "Centrera", - justifyright: "H�gerjustera", - justifyfull: "Marginaljustera", - orderedlist: "Numrerad lista", - unorderedlist: "Punktlista", - outdent: "Minska indrag", - indent: "�ka indrag", - forecolor: "Textf�rg", - backcolor: "Bakgrundsf�rg", - horizontalrule: "V�gr�t linje", - createlink: "Infoga l�nk", - insertimage: "Infoga bild", - inserttable: "Infoga tabell", - htmlmode: "Visa k�llkod", - popupeditor: "Visa i eget f�nster", - about: "Om denna editor", - help: "Hj�lp", - textindicator: "Nuvarande stil" - } -}; +// - translated by pat + +// term�s and licenses are equal to htmlarea! + + + +HTMLArea.I18N = { + + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "se", + + tooltips: { + + bold: "Fet", + + italic: "Kursiv", + + underline: "Understruken", + + strikethrough: "Genomstruken", + + subscript: "Neds�nkt", + + superscript: "Upph�jd", + + justifyleft: "V�nsterjustera", + + justifycenter: "Centrera", + + justifyright: "H�gerjustera", + + justifyfull: "Marginaljustera", + + orderedlist: "Numrerad lista", + + unorderedlist: "Punktlista", + + outdent: "Minska indrag", + + indent: "�ka indrag", + + forecolor: "Textf�rg", + + backcolor: "Bakgrundsf�rg", + + horizontalrule: "V�gr�t linje", + + createlink: "Infoga l�nk", + + insertimage: "Infoga bild", + + inserttable: "Infoga tabell", + + htmlmode: "Visa k�llkod", + + popupeditor: "Visa i eget f�nster", + + about: "Om denna editor", + + help: "Hj�lp", + + textindicator: "Nuvarande stil" + + } + +}; + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/si.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/si.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/si.js 30 Jan 2005 16:13:27 -0000 1.1 @@ -0,0 +1,126 @@ +// I18N constants + + + +// LANG: "si", ENCODING: ISO-8859-2 + +// Author: Tomaz Kregar, x_tomo_x@email.si + + + +// FOR TRANSLATORS: + +// + +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE + +// (at least a valid email address) + +// + +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; + +// (if this is not possible, please include a comment + +// that states what encoding is necessary.) + + + +HTMLArea.I18N = { + + + + // the following should be the filename without .js extension + + // it will be used for automatically load plugin language. + + lang: "si", + + + + tooltips: { + + bold: "Krepko", + + italic: "Le�e�e", + + underline: "Pod�rtano", + + strikethrough: "Pre�rtano", + + subscript: "Podpisano", + + superscript: "Nadpisano", + + justifyleft: "Poravnaj levo", + + justifycenter: "Na sredino", + + justifyright: "Poravnaj desno", + + justifyfull: "Porazdeli vsebino", + + orderedlist: "O�tevil�evanje", + + unorderedlist: "Ozna�evanje", + + outdent: "Zmanj�aj zamik", + + indent: "Pove�aj zamik", + + forecolor: "Barva pisave", + + hilitecolor: "Barva ozadja", + + horizontalrule: "Vodoravna �rta", + + createlink: "Vstavi hiperpovezavo", + + insertimage: "Vstavi sliko", + + inserttable: "Vstavi tabelo", + + htmlmode: "Preklopi na HTML kodo", + + popupeditor: "Pove�aj urejevalnik", + + about: "Vizitka za urejevalnik", + + showhelp: "Pomo� za urejevalnik", + + textindicator: "Trenutni slog", + + undo: "Razveljavi zadnjo akcijo", + + redo: "Uveljavi zadnjo akcijo", + + cut: "Izre�i", + + copy: "Kopiraj", + + paste: "Prilepi" + + }, + + + + buttons: { + + "ok": "V redu", + + "cancel": "Prekli�i" + + }, + + + + msg: { + + "Path": "Pot", + + "TEXT_MODE": "Si v tekstovnem na�inu. Uporabi [<>] gumb za prklop nazaj na WYSIWYG." + + } + +}; + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/lang/vn.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/lang/vn.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/lang/vn.js 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/lang/vn.js 30 Jan 2005 16:13:27 -0000 1.2 @@ -1,38 +1,77 @@ -// I18N constants : Vietnamese -// mviet: download the free Vietnamese script addon for htmlArea at: www.mviet.org -// email: mviet@socal.rr.com - -HTMLArea.I18N = { - - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "vn", - - tooltips: { - bold: "Đậm", - italic: "Nghiêng", - underline: "Gạch Đít", - strikethrough: "Gạch Xóa", - subscript: "Viết Xuống Dưới", - superscript: "Viết Lên Trên ", - justifyleft: "Ngay Hàng Bên Trái ", - justifycenter: "Ngay Hàng Giữa", - justifyright: "Ngay Hàng Lên Phải", - justifyfull: "Ngay Hàng Trái & Phải", - orderedlist: "Chuỗi Thứ Tự 123", - unorderedlist: "Chuỗi Nút", - outdent: "Giảm Vào Hàng", - indent: "Tăng Vào Hàng", - forecolor: "Màu Chữ", - backcolor: "Màu Nền", - horizontalrule: "Thước Ngang", - createlink: "Tạo Nối", - insertimage: "Mang Hình Vô", - inserttable: "Mang Khuôn Vô", - htmlmode: "Bật / Tắt Nguồn HTML", - popupeditor: "Póp Lớn Khung Viết", - about: "Nói Về Chương Trình", - help: "Giúp Đỡ", - textindicator: "Loại Kiểu Viết" - } -}; +// I18N constants : Vietnamese +// LANG: "en", ENCODING: UTF-8 +// Author: Nguyễn Đình Nam, +// Modified 21/07/2004 by Phạm Mai Quân + +HTMLArea.I18N = { + + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "vn", + + tooltips: { + bold: "Đậm", + italic: "Nghiêng", + underline: "Gạch Chân", + strikethrough: "Gạch Xóa", + subscript: "Viết Xuống Dưới", + superscript: "Viết Lên Trên", + justifyleft: "Căn Trái", + justifycenter: "Căn Giữa", + justifyright: "Căn Phải", + justifyfull: "Căn Đều", + insertorderedlist: "Danh Sách Có Thứ Tự (1, 2, 3)", + insertunorderedlist: "Danh Sách Phi Thứ Tự (Chấm đầu dòng)", + outdent: "Lùi Ra Ngoài", + indent: "Thụt Vào Trong", + forecolor: "Màu Chữ", + hilitecolor: "Màu Nền", + inserthorizontalrule: "Dòng Kẻ Ngang", + createlink: "Tạo Liên Kết", + insertimage: "Chèn Ảnh", + inserttable: "Chèn Bảng", + htmlmode: "Chế Độ Mã HTML", + popupeditor: "Phóng To Ô Soạn Thảo", + about: "Tự Giới Thiệu", + showhelp: "Giúp Đỡ", + textindicator: "Định Dạng Hiện Thời", + undo: "Hủy thao tác trước", + redo: "Lấy lại thao tác vừa bỏ", + cut: "Cắt", + copy: "Sao chép", + paste: "Dán", + lefttoright: "Viết từ trái sang phải", + righttoleft: "Viết từ phải sang trái" + }, + buttons: { + "ok": "Đồng ý", + "cancel": "Hủy", + + "IE-sucks-full-screen" : + // translate here + "Chế độ phóng to ô soạn thảo có thể gây lỗi với Internet Explorer vì một số lỗi của trình duyệt này," + + " vì thế chế độ này có thể sẽ không chạy. Hiển thị không đúng, lộn xộn, không có đầy đủ chức năng," + + " và cũng có thể làm trình duyệt của bạn bị tắt ngang. Nếu bạn đang sử dụng Windows 9x " + + "bạn có thể bị báo lỗi 'General Protection Fault' và máy tính của bạn buộc phải khởi động lại.\n\n" + + "Chúng tôi đã cảnh báo bạn. Nhấn nút 'Đồng ý' nếu bạn vẫn muốn sử dụng tính năng này." + }, + msg: { + "Path": "Đường Dẫn", + "TEXT_MODE": "Bạn đang ở chế độ text. Sử dụng nút [<>] để chuyển lại chế độ WYSIWIG." + }, + + dialogs: { + "Cancel" : "Hủy", + "Insert/Modify Link" : "Thêm/Chỉnh sửa đường dẫn", + "New window (_blank)" : "Cửa sổ mới (_blank)", + "None (use implicit)" : "Không (sử dụng implicit)", + "OK" : "Đồng ý", + "Other" : "Khác", + "Same frame (_self)" : "Trên cùng khung (_self)", + "Target:" : "Nơi hiện thị:", + "Title (tooltip):" : "Tiêu đề (của hướng dẫn):", + "Top frame (_top)" : "Khung trên cùng (_top)", + "URL:" : "URL:", + "You must enter the URL where this link points to" : "Bạn phải điền địa chỉ (URL) mà đường dẫn sẽ liên kết tới" + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CSS/css.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CSS/css.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CSS/css.js 30 Jan 2005 16:13:28 -0000 1.1 @@ -0,0 +1,116 @@ +// Simple CSS (className) plugin for the editor +// Sponsored by http://www.miro.com.au +// Implementation by Mihai Bazon, http://dynarch.com/mishoo. +// +// (c) dynarch.com 2003-2005. +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). +// +// $Id: css.js,v 1.1 2005/01/30 16:13:28 jeffd Exp $ + +function CSS(editor, params) { + this.editor = editor; + var cfg = editor.config; + var toolbar = cfg.toolbar; + var self = this; + var i18n = CSS.I18N; + var plugin_config = params[0]; + var combos = plugin_config.combos; + + var first = true; + for (var i = combos.length; --i >= 0;) { + var combo = combos[i]; + var id = "CSS-class" + i; + var css_class = { + id : id, + options : combo.options, + action : function(editor) { self.onSelect(editor, this, combo.context, combo.updatecontextclass); }, + refresh : function(editor) { self.updateValue(editor, this); }, + context : combo.context + }; + cfg.registerDropdown(css_class); + + // prepend to the toolbar + toolbar[1].splice(0, 0, first ? "separator" : "space"); + toolbar[1].splice(0, 0, id); + if (combo.label) + toolbar[1].splice(0, 0, "T[" + combo.label + "]"); + first = false; + } +}; + +CSS._pluginInfo = { + name : "CSS", + version : "1.0", + developer : "Mihai Bazon", + developer_url : "http://dynarch.com/mishoo/", + c_owner : "Mihai Bazon", + sponsor : "Miro International", + sponsor_url : "http://www.miro.com.au", + license : "htmlArea" +}; + +CSS.prototype.onSelect = function(editor, obj, context, updatecontextclass) { + var tbobj = editor._toolbarObjects[obj.id]; + var index = tbobj.element.selectedIndex; + var className = tbobj.element.value; + + // retrieve parent element of the selection + var parent = editor.getParentElement(); + var surround = true; + + var is_span = (parent && parent.tagName.toLowerCase() == "span"); + var update_parent = (context && updatecontextclass && parent && parent.tagName.toLowerCase() == context); + + if (update_parent) { + parent.className = className; + editor.updateToolbar(); + return; + } + + if (is_span && index == 0 && !/\S/.test(parent.style.cssText)) { + while (parent.firstChild) { + parent.parentNode.insertBefore(parent.firstChild, parent); + } + parent.parentNode.removeChild(parent); + editor.updateToolbar(); + return; + } + + if (is_span) { + // maybe we could simply change the class of the parent node? + if (parent.childNodes.length == 1) { + parent.className = className; + surround = false; + // in this case we should handle the toolbar updation + // ourselves. + editor.updateToolbar(); + } + } + + // Other possibilities could be checked but require a lot of code. We + // can't afford to do that now. + if (surround) { + // shit happens ;-) most of the time. this method works, but + // it's dangerous when selection spans multiple block-level + // elements. + editor.surroundHTML("", ""); + } +}; + +CSS.prototype.updateValue = function(editor, obj) { + var select = editor._toolbarObjects[obj.id].element; + var parent = editor.getParentElement(); + if (typeof parent.className != "undefined" && /\S/.test(parent.className)) { + var options = select.options; + var value = parent.className; + for (var i = options.length; --i >= 0;) { + var option = options[i]; + if (value == option.value) { + select.selectedIndex = i; + return; + } + } + } + select.selectedIndex = 0; +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CSS/lang/en.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CSS/lang/en.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CSS/lang/en.js 30 Jan 2005 16:13:28 -0000 1.1 @@ -0,0 +1,2 @@ +// none yet; this file is a stub. +CSS.I18N = {}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CharacterMap/character-map.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CharacterMap/character-map.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CharacterMap/character-map.js 30 Jan 2005 16:13:28 -0000 1.1 @@ -0,0 +1,70 @@ +// Character Map plugin for HTMLArea +// Sponsored by http://www.systemconcept.de +// Implementation by Holger Hees based on HTMLArea XTD 1.5 (http://mosforge.net/projects/htmlarea3xtd/) +// Original Author - Bernhard Pfeifer novocaine@gmx.net +// +// (c) systemconcept.de 2004 +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). + +function CharacterMap(editor) { + this.editor = editor; + + var cfg = editor.config; + var toolbar = cfg.toolbar; + var self = this; + var i18n = CharacterMap.I18N; + + cfg.registerButton({ + id : "insertcharacter", + tooltip : i18n["CharacterMapTooltip"], + image : editor.imgURL("ed_charmap.gif", "CharacterMap"), + textMode : false, + action : function(editor) { + self.buttonPress(editor); + } + }) + + var a, i, j, found = false; + for (i = 0; !found && i < toolbar.length; ++i) { + a = toolbar[i]; + for (j = 0; j < a.length; ++j) { + if (a[j] == "inserthorizontalrule") { + found = true; + break; + } + } + } + if (found) + a.splice(j, 0, "insertcharacter"); + else{ + toolbar[1].splice(0, 0, "separator"); + toolbar[1].splice(0, 0, "insertcharacter"); + } +}; + +CharacterMap._pluginInfo = { + name : "CharacterMap", + version : "1.0", + developer : "Holger Hees & Bernhard Pfeifer", + developer_url : "http://www.systemconcept.de/", + c_owner : "Holger Hees & Bernhard Pfeifer", + sponsor : "System Concept GmbH & Bernhard Pfeifer", + sponsor_url : "http://www.systemconcept.de/", + license : "htmlArea" +}; + +CharacterMap.prototype.buttonPress = function(editor) { + editor._popupDialog( "plugin://CharacterMap/select_character", function( entity ) + { + if ( !entity ) + { + //user must have pressed Cancel + return false; + } + + editor.insertHTML( entity ); + + }, null); +} + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CharacterMap/img/ed_charmap.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CharacterMap/img/ed_charmap.gif,v diff -u Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CharacterMap/lang/de.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CharacterMap/lang/de.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CharacterMap/lang/de.js 30 Jan 2005 16:13:28 -0000 1.1 @@ -0,0 +1,16 @@ +// I18N constants + +// LANG: "de", ENCODING: UTF-8 | ISO-8859-1 +// Sponsored by http://www.systemconcept.de +// Author: Holger Hees, +// +// (c) systemconcept.de 2004 +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). + +CharacterMap.I18N = { + "CharacterMapTooltip" : "Sonderzeichen einf�gen", + "Insert special character" : "Sonderzeichen einf�gen", + "HTML value:" : "HTML Wert:", + "Cancel" : "Abbrechen" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CharacterMap/lang/en.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CharacterMap/lang/en.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CharacterMap/lang/en.js 30 Jan 2005 16:13:28 -0000 1.1 @@ -0,0 +1,16 @@ +// I18N constants + +// LANG: "en", ENCODING: UTF-8 | ISO-8859-1 +// Sponsored by http://www.systemconcept.de +// Author: Holger Hees, +// +// (c) systemconcept.de 2004 +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). + +CharacterMap.I18N = { + "CharacterMapTooltip" : "Insert special character", + "Insert special character" : "Insert special character", + "HTML value:" : "HTML value:", + "Cancel" : "Cancel" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CharacterMap/popups/select_character.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CharacterMap/popups/select_character.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/CharacterMap/popups/select_character.html 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,502 @@ + + + + +Insert special character + + + + + + + + + + + +
+ + + + + + + + + + + + + +
HTML value:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Ÿš@"¡¢£¤¥¦§¨©ª«¬
¯°±²³´µ·¸¹º»¼½¾
¿×Ø÷øƒˆ˜
ÀÁÂÃÄÅÆ
ÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ
®×ÙÚÛÜÝÞßàáâãäåæ
çèéêëìíîïðñòóôõö
÷øùúûüýþÿŒœŠ    

+ +
+ + + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/context-menu.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/context-menu.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/context-menu.js 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,451 @@ +// Context Menu Plugin for HTMLArea-3.0 +// Sponsored by www.americanbible.org +// Implementation by Mihai Bazon, http://dynarch.com/mishoo/ +// +// (c) dynarch.com 2003-2005. +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). +// +// $Id: context-menu.js,v 1.1 2005/01/30 16:13:29 jeffd Exp $ + +HTMLArea.loadStyle("menu.css", "ContextMenu"); + +function ContextMenu(editor) { + this.editor = editor; +}; + +ContextMenu._pluginInfo = { + name : "ContextMenu", + version : "1.0", + developer : "Mihai Bazon", + developer_url : "http://dynarch.com/mishoo/", + c_owner : "dynarch.com", + sponsor : "American Bible Society", + sponsor_url : "http://www.americanbible.org", + license : "htmlArea" +}; + +ContextMenu.prototype.onGenerate = function() { + var self = this; + var doc = this.editordoc = this.editor._iframe.contentWindow.document; + HTMLArea._addEvents(doc, ["contextmenu"], + function (event) { + return self.popupMenu(HTMLArea.is_ie ? self.editor._iframe.contentWindow.event : event); + }); + this.currentMenu = null; +}; + +ContextMenu.prototype.getContextMenu = function(target) { + var self = this; + var editor = this.editor; + var config = editor.config; + var menu = []; + var tbo = this.editor.plugins.TableOperations; + if (tbo) tbo = tbo.instance; + var i18n = ContextMenu.I18N; + + var selection = editor.hasSelectedText(); + if (selection) + menu.push([ i18n["Cut"], function() { editor.execCommand("cut"); }, null, config.btnList["cut"][1] ], + [ i18n["Copy"], function() { editor.execCommand("copy"); }, null, config.btnList["copy"][1] ]); + menu.push([ i18n["Paste"], function() { editor.execCommand("paste"); }, null, config.btnList["paste"][1] ]); + + var currentTarget = target; + var elmenus = []; + var tmp; + + var link = null; + var table = null; + var tr = null; + var td = null; + var img = null; + + function tableOperation(opcode) { + tbo.buttonPress(editor, opcode); + }; + + function insertPara(currentTarget, after) { + var el = currentTarget; + var par = el.parentNode; + var p = editor._doc.createElement("p"); + p.appendChild(editor._doc.createElement("br")); + par.insertBefore(p, after ? el.nextSibling : el); + var sel = editor._getSelection(); + var range = editor._createRange(sel); + if (!HTMLArea.is_ie) { + sel.removeAllRanges(); + range.selectNodeContents(p); + range.collapse(true); + sel.addRange(range); + } else { + range.moveToElementText(p); + range.collapse(true); + range.select(); + } + }; + + for (; target; target = target.parentNode) { + var tag = target.tagName; + if (!tag) + continue; + tag = tag.toLowerCase(); + switch (tag) { + case "img": + img = target; + elmenus.push(null, + [ i18n["Image Properties"], + function() { + editor._insertImage(img); + }, + i18n["Show the image properties dialog"], + config.btnList["insertimage"][1] ] + ); + break; + case "a": + link = target; + elmenus.push(null, + [ i18n["Modify Link"], + function() { editor.execCommand("createlink", true); }, + i18n["Current URL is"] + ': ' + link.href, + config.btnList["createlink"][1] ], + + [ i18n["Check Link"], + function() { window.open(link.href); }, + i18n["Opens this link in a new window"] ], + + [ i18n["Remove Link"], + function() { + if (confirm(i18n["Please confirm that you want to unlink this element."] + "\n" + + i18n["Link points to:"] + " " + link.href)) { + while (link.firstChild) + link.parentNode.insertBefore(link.firstChild, link); + link.parentNode.removeChild(link); + } + }, + i18n["Unlink the current element"] ] + ); + break; + case "td": + td = target; + if (!tbo) break; + elmenus.push(null, + [ i18n["Cell Properties"], + function() { tableOperation("TO-cell-prop"); }, + i18n["Show the Table Cell Properties dialog"], + config.btnList["TO-cell-prop"][1] ], + [ i18n["Delete Cell"], + function() { tableOperation("TO-cell-delete"); }, null, + config.btnList["TO-cell-delete"][1] ] + ); + break; + case "tr": + tr = target; + if (!tbo) break; + elmenus.push(null, + [ i18n["Row Properties"], + function() { tableOperation("TO-row-prop"); }, + i18n["Show the Table Row Properties dialog"], + config.btnList["TO-row-prop"][1] ], + + [ i18n["Insert Row Before"], + function() { tableOperation("TO-row-insert-above"); }, + i18n["Insert a new row before the current one"], + config.btnList["TO-row-insert-above"][1] ], + + [ i18n["Insert Row After"], + function() { tableOperation("TO-row-insert-under"); }, + i18n["Insert a new row after the current one"], + config.btnList["TO-row-insert-under"][1] ], + + [ i18n["Delete Row"], + function() { tableOperation("TO-row-delete"); }, + i18n["Delete the current row"], + config.btnList["TO-row-delete"][1] ] + ); + break; + case "table": + table = target; + if (!tbo) break; + elmenus.push(null, + [ i18n["Table Properties"], + function() { tableOperation("TO-table-prop"); }, + i18n["Show the Table Properties dialog"], + config.btnList["TO-table-prop"][1] ], + + [ i18n["Insert Column Before"], + function() { tableOperation("TO-col-insert-before"); }, + i18n["Insert a new column before the current one"], + config.btnList["TO-col-insert-before"][1] ], + + [ i18n["Insert Column After"], + function() { tableOperation("TO-col-insert-after"); }, + i18n["Insert a new column after the current one"], + config.btnList["TO-col-insert-after"][1] ], + + [ i18n["Delete Column"], + function() { tableOperation("TO-col-delete"); }, + i18n["Delete the current column"], + config.btnList["TO-col-delete"][1] ] + ); + break; + case "body": + elmenus.push(null, + [ i18n["Justify Left"], + function() { editor.execCommand("justifyleft"); }, null, + config.btnList["justifyleft"][1] ], + [ i18n["Justify Center"], + function() { editor.execCommand("justifycenter"); }, null, + config.btnList["justifycenter"][1] ], + [ i18n["Justify Right"], + function() { editor.execCommand("justifyright"); }, null, + config.btnList["justifyright"][1] ], + [ i18n["Justify Full"], + function() { editor.execCommand("justifyfull"); }, null, + config.btnList["justifyfull"][1] ] + ); + break; + } + } + + if (selection && !link) + menu.push(null, [ i18n["Make link"], + function() { editor.execCommand("createlink", true); }, + i18n["Create a link"], + config.btnList["createlink"][1] ]); + + for (var i = 0; i < elmenus.length; ++i) + menu.push(elmenus[i]); + + if (!/html|body/i.test(currentTarget.tagName)) { + table ? (tmp = table, table = null) : (tmp = currentTarget); + menu.push(null, + [ i18n["Remove the"] + " <" + tmp.tagName + "> " + i18n["Element"], + function() { + if (confirm(i18n["Please confirm that you want to remove this element:"] + " " + + tmp.tagName)) { + var el = tmp; + var p = el.parentNode; + p.removeChild(el); + if (HTMLArea.is_gecko) { + if (p.tagName.toLowerCase() == "td" && !p.hasChildNodes()) + p.appendChild(editor._doc.createElement("br")); + editor.forceRedraw(); + editor.focusEditor(); + editor.updateToolbar(); + if (table) { + var save_collapse = table.style.borderCollapse; + table.style.borderCollapse = "collapse"; + table.style.borderCollapse = "separate"; + table.style.borderCollapse = save_collapse; + } + } + } + }, + i18n["Remove this node from the document"] ], + [ i18n["Insert paragraph before"], + function() { insertPara(tmp, false); }, + i18n["Insert a paragraph before the current node"] ], + [ i18n["Insert paragraph after"], + function() { insertPara(tmp, true); }, + i18n["Insert a paragraph after the current node"] ] + ); + } + return menu; +}; + +ContextMenu.prototype.popupMenu = function(ev) { + var self = this; + var i18n = ContextMenu.I18N; + if (this.currentMenu) + this.currentMenu.parentNode.removeChild(this.currentMenu); + function getPos(el) { + var r = { x: el.offsetLeft, y: el.offsetTop }; + if (el.offsetParent) { + var tmp = getPos(el.offsetParent); + r.x += tmp.x; + r.y += tmp.y; + } + return r; + }; + function documentClick(ev) { + ev || (ev = window.event); + if (!self.currentMenu) { + alert(i18n["How did you get here? (Please report!)"]); + return false; + } + var el = HTMLArea.is_ie ? ev.srcElement : ev.target; + for (; el != null && el != self.currentMenu; el = el.parentNode); + if (el == null) + self.closeMenu(); + //HTMLArea._stopEvent(ev); + //return false; + }; + var keys = []; + function keyPress(ev) { + ev || (ev = window.event); + HTMLArea._stopEvent(ev); + if (ev.keyCode == 27) { + self.closeMenu(); + return false; + } + var key = String.fromCharCode(HTMLArea.is_ie ? ev.keyCode : ev.charCode).toLowerCase(); + for (var i = keys.length; --i >= 0;) { + var k = keys[i]; + if (k[0].toLowerCase() == key) + k[1].__msh.activate(); + } + }; + self.closeMenu = function() { + self.currentMenu.parentNode.removeChild(self.currentMenu); + self.currentMenu = null; + HTMLArea._removeEvent(document, "mousedown", documentClick); + HTMLArea._removeEvent(self.editordoc, "mousedown", documentClick); + if (keys.length > 0) + HTMLArea._removeEvent(self.editordoc, "keypress", keyPress); + if (HTMLArea.is_ie) + self.iePopup.hide(); + }; + var target = HTMLArea.is_ie ? ev.srcElement : ev.target; + var ifpos = getPos(self.editor._iframe); + var x = ev.clientX + ifpos.x; + var y = ev.clientY + ifpos.y; + + var div; + var doc; + if (!HTMLArea.is_ie) { + doc = document; + } else { + // IE stinks + var popup = this.iePopup = window.createPopup(); + doc = popup.document; + doc.open(); + doc.write(""); + doc.close(); + } + div = doc.createElement("div"); + if (HTMLArea.is_ie) + div.unselectable = "on"; + div.oncontextmenu = function() { return false; }; + div.className = "htmlarea-context-menu"; + if (!HTMLArea.is_ie) + div.style.left = div.style.top = "0px"; + doc.body.appendChild(div); + + var table = doc.createElement("table"); + div.appendChild(table); + table.cellSpacing = 0; + table.cellPadding = 0; + var parent = doc.createElement("tbody"); + table.appendChild(parent); + + var options = this.getContextMenu(target); + for (var i = 0; i < options.length; ++i) { + var option = options[i]; + var item = doc.createElement("tr"); + parent.appendChild(item); + if (HTMLArea.is_ie) + item.unselectable = "on"; + else item.onmousedown = function(ev) { + HTMLArea._stopEvent(ev); + return false; + }; + if (!option) { + item.className = "separator"; + var td = doc.createElement("td"); + td.className = "icon"; + var IE_IS_A_FUCKING_SHIT = '>'; + if (HTMLArea.is_ie) { + td.unselectable = "on"; + IE_IS_A_FUCKING_SHIT = " unselectable='on' style='height=1px'> "; + } + td.innerHTML = ""; + var td1 = td.cloneNode(true); + td1.className = "label"; + item.appendChild(td); + item.appendChild(td1); + } else { + var label = option[0]; + item.className = "item"; + item.__msh = { + item: item, + label: label, + action: option[1], + tooltip: option[2] || null, + icon: option[3] || null, + activate: function() { + self.closeMenu(); + self.editor.focusEditor(); + this.action(); + } + }; + label = label.replace(/_([a-zA-Z0-9])/, "$1"); + if (label != option[0]) + keys.push([ RegExp.$1, item ]); + label = label.replace(/__/, "_"); + var td1 = doc.createElement("td"); + if (HTMLArea.is_ie) + td1.unselectable = "on"; + item.appendChild(td1); + td1.className = "icon"; + if (item.__msh.icon) + td1.innerHTML = ""; + var td2 = doc.createElement("td"); + if (HTMLArea.is_ie) + td2.unselectable = "on"; + item.appendChild(td2); + td2.className = "label"; + td2.innerHTML = label; + item.onmouseover = function() { + this.className += " hover"; + self.editor._statusBarTree.innerHTML = this.__msh.tooltip || ' '; + }; + item.onmouseout = function() { this.className = "item"; }; + item.oncontextmenu = function(ev) { + this.__msh.activate(); + if (!HTMLArea.is_ie) + HTMLArea._stopEvent(ev); + return false; + }; + item.onmouseup = function(ev) { + var timeStamp = (new Date()).getTime(); + if (timeStamp - self.timeStamp > 500) + this.__msh.activate(); + if (!HTMLArea.is_ie) + HTMLArea._stopEvent(ev); + return false; + }; + //if (typeof option[2] == "string") + //item.title = option[2]; + } + } + + if (!HTMLArea.is_ie) { + var dx = x + div.offsetWidth - window.innerWidth + 4; + var dy = y + div.offsetHeight - window.innerHeight + 4; + if (dx > 0) x -= dx; + if (dy > 0) y -= dy; + div.style.left = x + "px"; + div.style.top = y + "px"; + } else { + // determine the size (did I mention that IE stinks?) + var foobar = document.createElement("div"); + foobar.className = "htmlarea-context-menu"; + foobar.innerHTML = div.innerHTML; + document.body.appendChild(foobar); + var w = foobar.offsetWidth; + var h = foobar.offsetHeight; + document.body.removeChild(foobar); + this.iePopup.show(ev.screenX, ev.screenY, w, h); + } + + this.currentMenu = div; + this.timeStamp = (new Date()).getTime(); + + HTMLArea._addEvent(document, "mousedown", documentClick); + HTMLArea._addEvent(this.editordoc, "mousedown", documentClick); + if (keys.length > 0) + HTMLArea._addEvent(this.editordoc, "keypress", keyPress); + + HTMLArea._stopEvent(ev); + return false; +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/menu.css =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/menu.css,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/menu.css 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,65 @@ +/* styles for the ContextMenu /HTMLArea */ +/* The ContextMenu plugin is (c) dynarch.com 2003. */ +/* Distributed under the same terms as HTMLArea itself */ + +div.htmlarea-context-menu { + position: absolute; + border: 1px solid #aca899; + padding: 2px; + background-color: #fff; + color: #000; + cursor: default; + z-index: 1000; +} + +div.htmlarea-context-menu table { + font: 11px tahoma,verdana,sans-serif; + border-collapse: collapse; +} + +div.htmlarea-context-menu tr.item td.icon img { + width: 18px; + height: 18px; +} + +div.htmlarea-context-menu tr.item td.icon { + padding: 0px 3px; + height: 18px; + background-color: #cdf; +} + +div.htmlarea-context-menu tr.item td.label { + padding: 1px 10px 1px 3px; +} + +div.htmlarea-context-menu tr.separator td { + padding: 2px 0px; +} + +div.htmlarea-context-menu tr.separator td div { + border-top: 1px solid #aca899; + overflow: hidden; + position: relative; +} + +div.htmlarea-context-menu tr.separator td.icon { + background-color: #cdf; +} + +div.htmlarea-context-menu tr.separator td.icon div { +/* margin-left: 3px; */ + border-color: #fff; +} + +div.htmlarea-context-menu tr.separator td.label div { + margin-right: 3px; +} + +div.htmlarea-context-menu tr.item.hover { + background-color: #316ac5; + color: #fff; +} + +div.htmlarea-context-menu tr.item.hover td.icon { + background-color: #619af5; +} Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/de.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/de.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/de.js 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,59 @@ +// I18N constants + +// LANG: "de", ENCODING: UTF-8 | ISO-8859-1 + +// translated: <]{MJ}[> i@student.ethz.ch + + +ContextMenu.I18N = { + // Items that appear in menu. Please note that an underscore (_) + // character in the translation (right column) will cause the following + // letter to become underlined and be shortcut for that menu option. + + "Cut" : "Ausschneiden", + "Copy" : "Kopieren", + "Paste" : "Einfügen", + "Image Properties" : "_Bild Einstellungen...", + "Modify Link" : "_Link ändern...", + "Check Link" : "Link testen...", + "Remove Link" : "Link entfernen...", + "Cell Properties" : "Z_ellen Einstellungen...", + "Row Properties" : "Ze_ilen Einstellungen...", + "Insert Row Before" : "Zeile einfügen v_or Position", + "Insert Row After" : "Zeile einfügen n_ach Position", + "Delete Row" : "Zeile löschen", + "Table Properties" : "_Tabellen Einstellungen...", + "Insert Column Before" : "Spalte einfügen vo_r Position", + "Insert Column After" : "Spalte einfügen na_ch Position", + "Delete Column" : "Spalte löschen", + "Justify Left" : "Links ausrichten", + "Justify Center" : "Zentriert", + "Justify Right" : "Rechts ausrichten", + "Justify Full" : "Blocksatz", + "Make link" : "Lin_k erstellen...", + "Remove the" : "", + "Element" : "Element entfernen...", + + // Other labels (tooltips and alert/confirm box messages) + + "Please confirm that you want to remove this element:" : "Wollen sie dieses Element wirklich entfernen ?", + "Remove this node from the document" : "Dieses Element aus dem Dokument entfernen", + "How did you get here? (Please report!)" : "How did you get here? (Please report!)", + "Show the image properties dialog" : "Fenster für die Bild-Einstellungen anzeigen", + "Modify URL" : "URL ändern", + "Current URL is" : "Aktuelle URL ist", + "Opens this link in a new window" : "Diesen Link in neuem Fenster öffnen", + "Please confirm that you want to unlink this element." : "Wollen sie diesen Link wirklich entfernen ?", + "Link points to:" : "Link zeigt auf:", + "Unlink the current element" : "Link auf Element entfernen", + "Show the Table Cell Properties dialog" : "Zellen-Einstellungen anzeigen", + "Show the Table Row Properties dialog" : "Zeilen-Einstellungen anzeigen", + "Insert a new row before the current one" : "Zeile einfügen vor der aktuellen Position", + "Insert a new row after the current one" : "Zeile einfügen nach der aktuellen Position", + "Delete the current row" : "Zeile löschen", + "Show the Table Properties dialog" : "Show the Table Properties dialog", + "Insert a new column before the current one" : "Spalte einfügen vor der aktuellen Position", + "Insert a new column after the current one" : "Spalte einfügen nach der aktuellen Position", + "Delete the current column" : "Spalte löschen", + "Create a link" : "Link erstellen" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/el.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/el.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/el.js 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,57 @@ +// I18N constants + +// LANG: "el", ENCODING: UTF-8 | ISO-8859-7 +// Author: Dimitris Glezos, dimitris@glezos.com + +ContextMenu.I18N = { + // Items that appear in menu. Please note that an underscore (_) + // character in the translation (right column) will cause the following + // letter to become underlined and be shortcut for that menu option. + + "Cut" : "Αποκοπή", + "Copy" : "Αντιγραφή", + "Paste" : "Επικόλληση", + "Image Properties" : "Ιδιότητες Εικόνας...", + "Modify Link" : "Τροποποίηση συνδέσμου...", + "Check Link" : "Έλεγχος συνδέσμων...", + "Remove Link" : "Διαγραφή συνδέσμου...", + "Cell Properties" : "Ιδιότητες κελιού...", + "Row Properties" : "Ιδιότητες γραμμής...", + "Insert Row Before" : "Εισαγωγή γραμμής πριν", + "Insert Row After" : "Εισαγωγή γραμμής μετά", + "Delete Row" : "Διαγραφή γραμμής", + "Table Properties" : "Ιδιότητες πίνακα...", + "Insert Column Before" : "Εισαγωγή στήλης πριν", + "Insert Column After" : "Εισαγωγή στήλης μετά", + "Delete Column" : "Διαγραφή στήλης", + "Justify Left" : "Στοίχηση Αριστερά", + "Justify Center" : "Στοίχηση Κέντρο", + "Justify Right" : "Στοίχηση Δεξιά", + "Justify Full" : "Πλήρης Στοίχηση", + "Make link" : "Δημιουργία συνδέσμου...", + "Remove the" : "Αφαίρεση", + "Element" : "στοιχείου...", + + // Other labels (tooltips and alert/confirm box messages) + + "Please confirm that you want to remove this element:" : "Είστε βέβαιος πως θέλετε να αφαιρέσετε το στοιχείο ", + "Remove this node from the document" : "Αφαίρεση αυτού του κόμβου από το έγγραφο", + "How did you get here? (Please report!)" : "Πώς ήρθατε μέχρι εδώ; (Παρακαλούμε αναφέρετε το!)", + "Show the image properties dialog" : "Εμφάνιση διαλόγου με τις Ιδιότητες εικόνας", + "Modify URL" : "Τροποποίηση URL", + "Current URL is" : "Το τρέχων URL είναι", + "Opens this link in a new window" : "Ανοίγει αυτό τον σύνδεσμο σε ένα νέο παράθυρο", + "Please confirm that you want to unlink this element." : "Είστε βέβαιος πως θέλετε να αφαιρέσετε τον σύνδεσμο από αυτό το στοιχείο:", + "Link points to:" : "Ο σύνδεμος οδηγεί εδώ:", + "Unlink the current element" : "Αφαίρεση συνδέσμου από το παρών στοιχείο", + "Show the Table Cell Properties dialog" : "Εμφάνιση διαλόγου με τις Ιδιότητες κελιού Πίνακα", + "Show the Table Row Properties dialog" : "Εμφάνιση διαλόγου με τις Ιδιότητες γραμμής Πίνακα", + "Insert a new row before the current one" : "Εισαγωγή μιας νέας γραμμής πριν την επιλεγμένη", + "Insert a new row after the current one" : "Εισαγωγή μιας νέας γραμμής μετά την επιλεγμένη", + "Delete the current row" : "Διαγραφή επιλεγμένης γραμμής", + "Show the Table Properties dialog" : "Εμφάνιση διαλόγου με τις Ιδιότητες Πίνακα", + "Insert a new column before the current one" : "Εισαγωγή νέας στήλης πριν την επιλεγμένη", + "Insert a new column after the current one" : "Εισαγωγή νέας στήλης μετά την επιλεγμένη", + "Delete the current column" : "Διαγραφή επιλεγμένης στήλης", + "Create a link" : "Δημιουργία συνδέσμου" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/en.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/en.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/en.js 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,71 @@ +// I18N constants + +// LANG: "en", ENCODING: UTF-8 | ISO-8859-1 +// Author: Mihai Bazon, http://dynarch.com/mishoo + +// FOR TRANSLATORS: +// +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE +// (at least a valid email address) +// +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; +// (if this is not possible, please include a comment +// that states what encoding is necessary.) + +ContextMenu.I18N = { + // Items that appear in menu. Please note that an underscore (_) + // character in the translation (right column) will cause the following + // letter to become underlined and be shortcut for that menu option. + + "Cut" : "Cut", + "Copy" : "Copy", + "Paste" : "Paste", + "Image Properties" : "_Image Properties...", + "Modify Link" : "_Modify Link...", + "Check Link" : "Chec_k Link...", + "Remove Link" : "_Remove Link...", + "Cell Properties" : "C_ell Properties...", + "Row Properties" : "Ro_w Properties...", + "Insert Row Before" : "I_nsert Row Before", + "Insert Row After" : "In_sert Row After", + "Delete Row" : "_Delete Row", + "Delete Cell" : "Delete Cell", + "Table Properties" : "_Table Properties...", + "Insert Column Before" : "Insert _Column Before", + "Insert Column After" : "Insert C_olumn After", + "Delete Column" : "De_lete Column", + "Justify Left" : "Justify Left", + "Justify Center" : "Justify Center", + "Justify Right" : "Justify Right", + "Justify Full" : "Justify Full", + "Make link" : "Make lin_k...", + "Remove the" : "Remove the", + "Element" : "Element...", + "Insert paragraph before" : "Insert paragraph before", + "Insert paragraph after" : "Insert paragraph after", + + // Other labels (tooltips and alert/confirm box messages) + + "Please confirm that you want to remove this element:" : "Please confirm that you want to remove this element:", + "Remove this node from the document" : "Remove this node from the document", + "How did you get here? (Please report!)" : "How did you get here? (Please report!)", + "Show the image properties dialog" : "Show the image properties dialog", + "Modify URL" : "Modify URL", + "Current URL is" : "Current URL is", + "Opens this link in a new window" : "Opens this link in a new window", + "Please confirm that you want to unlink this element." : "Please confirm that you want to unlink this element.", + "Link points to:" : "Link points to:", + "Unlink the current element" : "Unlink the current element", + "Show the Table Cell Properties dialog" : "Show the Table Cell Properties dialog", + "Show the Table Row Properties dialog" : "Show the Table Row Properties dialog", + "Insert a new row before the current one" : "Insert a new row before the current one", + "Insert a new row after the current one" : "Insert a new row after the current one", + "Delete the current row" : "Delete the current row", + "Show the Table Properties dialog" : "Show the Table Properties dialog", + "Insert a new column before the current one" : "Insert a new column before the current one", + "Insert a new column after the current one" : "Insert a new column after the current one", + "Delete the current column" : "Delete the current column", + "Create a link" : "Create a link", + "Insert a paragraph before the current node" : "Insert a paragraph before the current node", + "Insert a paragraph after the current node" : "Insert a paragraph after the current node" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/fr.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/fr.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/fr.js 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,66 @@ +// I18N constants + +// LANG: "fr", ENCODING: UTF-8 | ISO-8859-1 +// Author: Cédric Guillemette, http://www.ebdata.com + +// FOR TRANSLATORS: +// +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE +// (at least a valid email address) +// +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; +// (if this is not possible, please include a comment +// that states what encoding is necessary.) + +ContextMenu.I18N = { + // Items that appear in menu. Please note that an underscore (_) + // character in the translation (right column) will cause the following + // letter to become underlined and be shortcut for that menu option. + + "Cut" : "Couper", + "Copy" : "Copier", + "Paste" : "Coller", + "Image Properties" : "_Propriétés de l'image...", + "Modify Link" : "_Modifier le lien...", + "Check Link" : "_Vérifier le lien...", + "Remove Link" : "_Supprimer le lien...", + "Cell Properties" : "P_ropriétés de la cellule...", + "Row Properties" : "Pr_opriétés de la rangée...", + "Insert Row Before" : "Insérer une rangée a_vant", + "Insert Row After" : "Insér_er une rangée après", + "Delete Row" : "Suppr_imer une rangée", + "Table Properties" : "Proprié_tés de la table...", + "Insert Column Before" : "I_nsérer une colonne avant", + "Insert Column After" : "Insérer une colonne _après", + "Delete Column" : "_Supprimer la colonne", + "Justify Left" : "Justifier _gauche", + "Justify Center" : "Justifier _centre", + "Justify Right" : "Justifier _droit", + "Justify Full" : "Justifier p_lein", + "Make link" : "Convertir en lien...", + "Remove the" : "Supprimer", + "Element" : "Élément...", + + // Other labels (tooltips and alert/confirm box messages) + + "Please confirm that you want to remove this element:" : "Confirmer la suppression de cet élément:", + "Remove this node from the document" : "Supprimer ce noeud du document", + "How did you get here? (Please report!)" : "Comment êtes-vous arrivé ici? (Please report!)", + "Show the image properties dialog" : "Afficher le dialogue des propriétés d'image", + "Modify URL" : "Modifier le URL", + "Current URL is" : "Le URL courant est", + "Opens this link in a new window" : "Ouvrir ce lien dans une nouvelle fenêtre", + "Please confirm that you want to unlink this element." : "Voulez-vous vraiment enlever le lien présent sur cet élément.", + "Link points to:" : "Lier les points jusqu'à:", + "Unlink the current element" : "Enlever le lien sur cet élément", + "Show the Table Cell Properties dialog" : "Afficher le dialogue des propriétés des cellules", + "Show the Table Row Properties dialog" : "Afficher le dialogue des propriétés des rangées", + "Insert a new row before the current one" : "Insérer une nouvelle rangée avant celle-ci", + "Insert a new row after the current one" : "Insérer une nouvelle rangée après celle-ci", + "Delete the current row" : "Supprimer la rangée courante", + "Show the Table Properties dialog" : "Afficher le dialogue des propriétés de table", + "Insert a new column before the current one" : "Insérer une nouvelle rangée avant celle-ci", + "Insert a new column after the current one" : "Insérer une nouvelle colonne après celle-ci", + "Delete the current column" : "Supprimer cette colonne", + "Create a link" : "Créer un lien" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/he.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/he.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/he.js 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,132 @@ +// I18N constants + + + +// LANG: "he", ENCODING: UTF-8 + +// Author: Liron Newman, http://www.eesh.net, + + + +// FOR TRANSLATORS: + +// + +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE + +// (at least a valid email address) + +// + +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; + +// (if this is not possible, please include a comment + +// that states what encoding is necessary.) + + + +ContextMenu.I18N = { + + // Items that appear in menu. Please note that an underscore (_) + + // character in the translation (right column) will cause the following + + // letter to become underlined and be shortcut for that menu option. + + + + "Cut" : "גזור", + + "Copy" : "העתק", + + "Paste" : "הדבק", + + "Image Properties" : "_מאפייני תמונה...", + + "Modify Link" : "_שנה קישור...", + + "Check Link" : "בדו_ק קישור...", + + "Remove Link" : "_הסר קישור...", + + "Cell Properties" : "מאפייני ת_א...", + + "Row Properties" : "מאפייני _טור...", + + "Insert Row Before" : "ה_כנס שורה לפני", + + "Insert Row After" : "הכנ_ס שורה אחרי", + + "Delete Row" : "_מחק שורה", + + "Table Properties" : "מאפייני ט_בלה...", + + "Insert Column Before" : "הכנס _טור לפני", + + "Insert Column After" : "הכנס ט_ור אחרי", + + "Delete Column" : "מח_ק טור", + + "Justify Left" : "ישור לשמאל", + + "Justify Center" : "ישור למרכז", + + "Justify Right" : "ישור לימין", + + "Justify Full" : "ישור לשורה מלאה", + + "Make link" : "צור קי_שור...", + + "Remove the" : "הסר את אלמנט ה-", + + "Element" : "...", + + + + // Other labels (tooltips and alert/confirm box messages) + + + + "Please confirm that you want to remove this element:" : "אנא אשר שברצונך להסיר את האלמנט הזה:", + + "Remove this node from the document" : "הסרה של node זה מהמסמך", + + "How did you get here? (Please report!)" : "איך הגעת הנה? (אנא דווח!)", + + "Show the image properties dialog" : "מציג את חלון הדו-שיח של מאפייני תמונה", + + "Modify URL" : "שינוי URL", + + "Current URL is" : "URL נוכחי הוא", + + "Opens this link in a new window" : "פתיחת קישור זה בחלון חדש", + + "Please confirm that you want to unlink this element." : "אנא אשר שאתה רוצה לנתק את אלמנט זה.", + + "Link points to:" : "הקישור מצביע אל:", + + "Unlink the current element" : "ניתוק את האלמנט הנוכחי", + + "Show the Table Cell Properties dialog" : "מציג את חלון הדו-שיח של מאפייני תא בטבלה", + + "Show the Table Row Properties dialog" : "מציג את חלון הדו-שיח של מאפייני שורה בטבלה", + + "Insert a new row before the current one" : "הוספת שורה חדשה לפני הנוכחית", + + "Insert a new row after the current one" : "הוספת שורה חדשה אחרי הנוכחית", + + "Delete the current row" : "מחיקת את השורה הנוכחית", + + "Show the Table Properties dialog" : "מציג את חלון הדו-שיח של מאפייני טבלה", + + "Insert a new column before the current one" : "הוספת טור חדש לפני הנוכחי", + + "Insert a new column after the current one" : "הוספת טור חדש אחרי הנוכחי", + + "Delete the current column" : "מחיקת את הטור הנוכחי", + + "Create a link" : "יצירת קישור" + +}; + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/nl.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/nl.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ContextMenu/lang/nl.js 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,132 @@ +// I18N constants + + + +// LANG: "nl", ENCODING: UTF-8 | ISO-8859-1 + +// Author: Michel Weegeerink (info@mmc-shop.nl), http://mmc-shop.nl + + + +// FOR TRANSLATORS: + +// + +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE + +// (at least a valid email address) + +// + +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; + +// (if this is not possible, please include a comment + +// that states what encoding is necessary.) + + + +ContextMenu.I18N = { + + // Items that appear in menu. Please note that an underscore (_) + + // character in the translation (right column) will cause the following + + // letter to become underlined and be shortcut for that menu option. + + + + "Cut" : "Knippen", + + "Copy" : "Kopi�ren", + + "Paste" : "Plakken", + + "Image Properties" : "Eigenschappen afbeelding...", + + "Modify Link" : "Hyperlin_k aanpassen...", + + "Check Link" : "Controleer hyperlin_k...", + + "Remove Link" : "Ve_rwijder hyperlink...", + + "Cell Properties" : "C_eleigenschappen...", + + "Row Properties" : "Rijeigenscha_ppen...", + + "Insert Row Before" : "Rij invoegen boven", + + "Insert Row After" : "Rij invoegen onder", + + "Delete Row" : "Rij _verwijderen", + + "Table Properties" : "_Tabeleigenschappen...", + + "Insert Column Before" : "Kolom invoegen voor", + + "Insert Column After" : "Kolom invoegen na", + + "Delete Column" : "Kolom verwijderen", + + "Justify Left" : "Links uitlijnen", + + "Justify Center" : "Centreren", + + "Justify Right" : "Rechts uitlijnen", + + "Justify Full" : "Uitvullen", + + "Make link" : "Maak hyperlin_k...", + + "Remove the" : "Verwijder het", + + "Element" : "element...", + + + + // Other labels (tooltips and alert/confirm box messages) + + + + "Please confirm that you want to remove this element:" : "Is het werkelijk de bedoeling dit element te verwijderen:", + + "Remove this node from the document" : "Verwijder dit punt van het document", + + "How did you get here? (Please report!)" : "Hoe kwam je hier? (A.U.B. doorgeven!)", + + "Show the image properties dialog" : "Laat het afbeeldingseigenschappen dialog zien", + + "Modify URL" : "Aanpassen URL", + + "Current URL is" : "Huidig URL is", + + "Opens this link in a new window" : "Opend deze hyperlink in een nieuw venster", + + "Please confirm that you want to unlink this element." : "Is het werkelijk de bedoeling dit element te unlinken.", + + "Link points to:" : "Hyperlink verwijst naar:", + + "Unlink the current element" : "Unlink het huidige element", + + "Show the Table Cell Properties dialog" : "Laat de tabel celeigenschappen dialog zien", + + "Show the Table Row Properties dialog" : "Laat de tabel rijeigenschappen dialog zien", + + "Insert a new row before the current one" : "Voeg een nieuwe rij in boven de huidige", + + "Insert a new row after the current one" : "Voeg een nieuwe rij in onder de huidige", + + "Delete the current row" : "Verwijder de huidige rij", + + "Show the Table Properties dialog" : "Laat de tabel eigenschappen dialog zien", + + "Insert a new column before the current one" : "Voeg een nieuwe kolom in voor de huidige", + + "Insert a new column after the current one" : "Voeg een nieuwe kolom in na de huidige", + + "Delete the current column" : "Verwijder de huidige kolom", + + "Create a link" : "Maak een hyperlink" + +}; + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/DynamicCSS/dynamiccss.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/DynamicCSS/dynamiccss.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/DynamicCSS/dynamiccss.js 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,235 @@ +// Dynamic CSS (className) plugin for HTMLArea +// Sponsored by http://www.systemconcept.de +// Implementation by Holger Hees +// +// (c) systemconcept.de 2004 +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). + +function DynamicCSS(editor, args) { + this.editor = editor; + + var cfg = editor.config; + var toolbar = cfg.toolbar; + var self = this; + var i18n = DynamicCSS.I18N; + + /*var cssArray=null; + var cssLength=0; + var lastTag=null; + var lastClass=null;*/ + + var css_class = { + id : "DynamicCSS-class", + tooltip : i18n["DynamicCSSStyleTooltip"], + options : {"":""}, + action : function(editor) { self.onSelect(editor, this); }, + refresh : function(editor) { self.updateValue(editor, this); } + }; + cfg.registerDropdown(css_class); + + toolbar[0].splice(0, 0, "separator"); + toolbar[0].splice(0, 0, "DynamicCSS-class"); + toolbar[0].splice(0, 0, "T[CSS]"); +}; + +DynamicCSS.parseStyleSheet=function(editor){ + var i18n = DynamicCSS.I18N; + iframe = editor._iframe.contentWindow.document; + + cssArray=DynamicCSS.cssArray; + if(!cssArray) cssArray=new Array(); + + for(i=0;i'; + } + else{ + className='none'; + if(tagName=='all') cssName=i18n["Default"]; + else cssName='<'+i18n["Default"]+'>'; + } + cssArray[tagName][className]=cssName; + DynamicCSS.cssLength++; + } + } + } + // ImportRule (Mozilla) + else if(cssRules[rule].styleSheet){ + cssArray=DynamicCSS.applyCSSRule(i18n,cssRules[rule].styleSheet.cssRules,cssArray); + } + } + return cssArray; +} + +DynamicCSS._pluginInfo = { + name : "DynamicCSS", + version : "1.5.2", + developer : "Holger Hees", + developer_url : "http://www.systemconcept.de/", + c_owner : "Holger Hees", + sponsor : "System Concept GmbH", + sponsor_url : "http://www.systemconcept.de/", + license : "htmlArea" +}; + +DynamicCSS.prototype.onSelect = function(editor, obj) { + var tbobj = editor._toolbarObjects[obj.id]; + var index = tbobj.element.selectedIndex; + var className = tbobj.element.value; + + var parent = editor.getParentElement(); + + if(className!='none'){ + parent.className=className; + DynamicCSS.lastClass=className; + } + else{ + if(HTMLArea.is_gecko) parent.removeAttribute('class'); + else parent.removeAttribute('className'); + } + editor.updateToolbar(); +}; + +/*DynamicCSS.prototype.onMode = function(mode) { + if(mode=='wysiwyg'){ + // reparse possible changed css files + DynamicCSS.cssArray=null; + this.updateValue(this.editor,this.editor.config.customSelects["DynamicCSS-class"]); + } +}*/ + +DynamicCSS.prototype.reparseTimer = function(editor, obj, instance) { + // new attempt of rescan stylesheets in 1,2,4 and 8 second (e.g. for external css-files with longer initialisation) + if(DynamicCSS.parseCount<9){ + setTimeout(function () { + DynamicCSS.cssLength=0; + DynamicCSS.parseStyleSheet(editor); + if(DynamicCSS.cssOldLength!=DynamicCSS.cssLength){ + DynamicCSS.cssOldLength=DynamicCSS.cssLength; + DynamicCSS.lastClass=null; + instance.updateValue(editor, obj); + } + instance.reparseTimer(editor, obj, instance); + },DynamicCSS.parseCount*1000); + DynamicCSS.parseCount=DynamicCSS.parseCount*2; + } +} + +DynamicCSS.prototype.updateValue = function(editor, obj) { + cssArray=DynamicCSS.cssArray; + // initial style init + if(!cssArray){ + DynamicCSS.cssLength=0; + DynamicCSS.parseStyleSheet(editor); + cssArray=DynamicCSS.cssArray; + DynamicCSS.cssOldLength=DynamicCSS.cssLength; + DynamicCSS.parseCount=1; + this.reparseTimer(editor,obj,this); + } + + var parent = editor.getParentElement(); + var tagName = parent.tagName.toLowerCase(); + var className = parent.className; + + if(DynamicCSS.lastTag!=tagName || DynamicCSS.lastClass!=className){ + DynamicCSS.lastTag=tagName; + DynamicCSS.lastClass=className; + + var i18n = DynamicCSS.I18N; + var select = editor._toolbarObjects[obj.id].element; + + while(select.length>0){ + select.options[select.length-1] = null; + } + + select.options[0]=new Option(i18n["Default"],'none'); + if(cssArray){ + // style class only allowed if parent tag is not body or editor is in fullpage mode + if(tagName!='body' || editor.config.fullPage){ + if(cssArray[tagName]){ + for(cssClass in cssArray[tagName]){ + if(cssClass=='none') select.options[0]=new Option(cssArray[tagName][cssClass],cssClass); + else select.options[select.length]=new Option(cssArray[tagName][cssClass],cssClass); + } + } + + if(cssArray['all']){ + for(cssClass in cssArray['all']){ + select.options[select.length]=new Option(cssArray['all'][cssClass],cssClass); + } + } + } + else if(cssArray[tagName] && cssArray[tagName]['none']) select.options[0]=new Option(cssArray[tagName]['none'],'none'); + } + + select.selectedIndex = 0; + + if (typeof className != "undefined" && /\S/.test(className)) { + var options = select.options; + for (var i = options.length; --i >= 0;) { + var option = options[i]; + if (className == option.value) { + select.selectedIndex = i; + break; + } + } + if(select.selectedIndex == 0){ + select.options[select.length]=new Option(i18n["Undefined"],className); + select.selectedIndex=select.length-1; + } + } + + if(select.length>1) select.disabled=false; + else select.disabled=true; + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/DynamicCSS/lang/de.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/DynamicCSS/lang/de.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/DynamicCSS/lang/de.js 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,15 @@ +// I18N constants + +// LANG: "de", ENCODING: UTF-8 | ISO-8859-1 +// Sponsored by http://www.systemconcept.de +// Author: Holger Hees, +// +// (c) systemconcept.de 2004 +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). + +DynamicCSS.I18N = { + "Default" : "Standard", + "Undefined" : "Nicht definiert", + "DynamicCSSStyleTooltip" : "W�hlen Sie einen StyleSheet aus" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/DynamicCSS/lang/en.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/DynamicCSS/lang/en.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/DynamicCSS/lang/en.js 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,15 @@ +// I18N constants + +// LANG: "de", ENCODING: UTF-8 | ISO-8859-1 +// Sponsored by http://www.systemconcept.de +// Author: Holger Hees, +// +// (c) systemconcept.de 2004 +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). + +DynamicCSS.I18N = { + "Default" : "Default", + "Undefined" : "Undefined", + "DynamicCSSStyleTooltip" : "Choose stylesheet" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/DynamicCSS/lang/fr.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/DynamicCSS/lang/fr.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/DynamicCSS/lang/fr.js 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,15 @@ +// I18N constants + +// LANG: "fr", ENCODING: UTF-8 | ISO-8859-1 +// Sponsored by http://www.ebdata.com +// Author: Cédric Guillemette, +// +// (c) www.ebdata.com 2004 +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). + +DynamicCSS.I18N = { + "Default" : "Défaut", + "Undefined" : "Non défini", + "DynamicCSSStyleTooltip" : "Choisir feuille de style" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/full-page.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/full-page.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/full-page.js 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,172 @@ +// FullPage Plugin for HTMLArea-3.0 +// Implementation by Mihai Bazon. Sponsored by http://thycotic.com +// +// (c) dynarch.com 2003-2005. +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). +// +// $Id: full-page.js,v 1.1 2005/01/30 16:13:29 jeffd Exp $ + +function FullPage(editor) { + this.editor = editor; + + var cfg = editor.config; + cfg.fullPage = true; + var tt = FullPage.I18N; + var self = this; + + cfg.registerButton("FP-docprop", tt["Document properties"], editor.imgURL("docprop.gif", "FullPage"), false, + function(editor, id) { + self.buttonPress(editor, id); + }); + + // add a new line in the toolbar + cfg.toolbar[0].splice(0, 0, "separator"); + cfg.toolbar[0].splice(0, 0, "FP-docprop"); +}; + +FullPage._pluginInfo = { + name : "FullPage", + version : "1.0", + developer : "Mihai Bazon", + developer_url : "http://dynarch.com/mishoo/", + c_owner : "Mihai Bazon", + sponsor : "Thycotic Software Ltd.", + sponsor_url : "http://thycotic.com", + license : "htmlArea" +}; + +FullPage.prototype.buttonPress = function(editor, id) { + var self = this; + switch (id) { + case "FP-docprop": + var doc = editor._doc; + var links = doc.getElementsByTagName("link"); + var style1 = ''; + var style2 = ''; + var charset = ''; + for (var i = links.length; --i >= 0;) { + var link = links[i]; + if (/stylesheet/i.test(link.rel)) { + if (/alternate/i.test(link.rel)) + style2 = link.href; + else + style1 = link.href; + } + } + var metas = doc.getElementsByTagName("meta"); + for (var i = metas.length; --i >= 0;) { + var meta = metas[i]; + if (/content-type/i.test(meta.httpEquiv)) { + r = /^text\/html; *charset=(.*)$/i.exec(meta.content); + charset = r[1]; + } + } + var title = doc.getElementsByTagName("title")[0]; + title = title ? title.innerHTML : ''; + var init = { + f_doctype : editor.doctype, + f_title : title, + f_body_bgcolor : HTMLArea._colorToRgb(doc.body.style.backgroundColor), + f_body_fgcolor : HTMLArea._colorToRgb(doc.body.style.color), + f_base_style : style1, + f_alt_style : style2, + f_charset : charset, + editor : editor + }; + editor._popupDialog("plugin://FullPage/docprop", function(params) { + self.setDocProp(params); + }, init); + break; + } +}; + +FullPage.prototype.setDocProp = function(params) { + var txt = ""; + var doc = this.editor._doc; + var head = doc.getElementsByTagName("head")[0]; + var links = doc.getElementsByTagName("link"); + var metas = doc.getElementsByTagName("meta"); + var style1 = null; + var style2 = null; + var charset = null; + var charset_meta = null; + for (var i = links.length; --i >= 0;) { + var link = links[i]; + if (/stylesheet/i.test(link.rel)) { + if (/alternate/i.test(link.rel)) + style2 = link; + else + style1 = link; + } + } + for (var i = metas.length; --i >= 0;) { + var meta = metas[i]; + if (/content-type/i.test(meta.httpEquiv)) { + r = /^text\/html; *charset=(.*)$/i.exec(meta.content); + charset = r[1]; + charset_meta = meta; + } + } + function createLink(alt) { + var link = doc.createElement("link"); + link.rel = alt ? "alternate stylesheet" : "stylesheet"; + head.appendChild(link); + return link; + }; + function createMeta(name, content) { + var meta = doc.createElement("meta"); + meta.httpEquiv = name; + meta.content = content; + head.appendChild(meta); + return meta; + }; + + if (!style1 && params.f_base_style) + style1 = createLink(false); + if (params.f_base_style) + style1.href = params.f_base_style; + else if (style1) + head.removeChild(style1); + + if (!style2 && params.f_alt_style) + style2 = createLink(true); + if (params.f_alt_style) + style2.href = params.f_alt_style; + else if (style2) + head.removeChild(style2); + + if (charset_meta) { + head.removeChild(charset_meta); + charset_meta = null; + } + if (!charset_meta && params.f_charset) + charset_meta = createMeta("Content-Type", "text/html; charset="+params.f_charset); + + for (var i in params) { + var val = params[i]; + switch (i) { + case "f_title": + var title = doc.getElementsByTagName("title")[0]; + if (!title) { + title = doc.createElement("title"); + head.appendChild(title); + } else while (node = title.lastChild) + title.removeChild(node); + if (!HTMLArea.is_ie) + title.appendChild(doc.createTextNode(val)); + else + doc.title = val; + break; + case "f_doctype": + this.editor.setDoctype(val); + break; + case "f_body_bgcolor": + doc.body.style.backgroundColor = val; + break; + case "f_body_fgcolor": + doc.body.style.color = val; + break; + } + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/test.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/test.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/test.html 30 Jan 2005 16:13:29 -0000 1.1 @@ -0,0 +1,89 @@ + + + Test of FullPage plugin + + + + + + + + + + + + + + + + + + +

Test of FullPage plugin

+ + + +
+
Mihai Bazon
+ + +Last modified on Sat Oct 25 01:06:59 2003 + + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/img/docprop.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/img/docprop.gif,v diff -u Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/de.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/de.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/de.js 30 Jan 2005 16:13:30 -0000 1.1 @@ -0,0 +1,25 @@ +// I18N for the FullPage plugin + +// LANG: "en", ENCODING: UTF-8 | ISO-8859-1 +// Author: Holger Hees, http://www.systemconcept.de + +// FOR TRANSLATORS: +// +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE +// (at least a valid email address) +// +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; +// (if this is not possible, please include a comment +// that states what encoding is necessary.) + +FullPage.I18N = { + "Alternate style-sheet:": "Alternativer Stylesheet:", + "Background color:": "Hintergrundfarbe:", + "Cancel": "Abbrechen", + "DOCTYPE:": "DOCTYPE:", + "Document properties": "Dokumenteigenschaften", + "Document title:": "Dokumenttitel:", + "OK": "OK", + "Primary style-sheet:": "Stylesheet:", + "Text color:": "Textfarbe:" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/en.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/en.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/en.js 30 Jan 2005 16:13:30 -0000 1.1 @@ -0,0 +1,25 @@ +// I18N for the FullPage plugin + +// LANG: "en", ENCODING: UTF-8 | ISO-8859-1 +// Author: Mihai Bazon, http://dynarch.com/mishoo + +// FOR TRANSLATORS: +// +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE +// (at least a valid email address) +// +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; +// (if this is not possible, please include a comment +// that states what encoding is necessary.) + +FullPage.I18N = { + "Alternate style-sheet:": "Alternate style-sheet:", + "Background color:": "Background color:", + "Cancel": "Cancel", + "DOCTYPE:": "DOCTYPE:", + "Document properties": "Document properties", + "Document title:": "Document title:", + "OK": "OK", + "Primary style-sheet:": "Primary style-sheet:", + "Text color:": "Text color:" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/fr.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/fr.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/fr.js 30 Jan 2005 16:13:30 -0000 1.1 @@ -0,0 +1,25 @@ +// I18N for the FullPage plugin + +// LANG: "fr", ENCODING: UTF-8 | ISO-8859-1 +// Author: Cédric Guillemette, http://www.ebdata.com + +// FOR TRANSLATORS: +// +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE +// (at least a valid email address) +// +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; +// (if this is not possible, please include a comment +// that states what encoding is necessary.) + +FullPage.I18N = { + "Alternate style-sheet:": "Feuille de style alternative:", + "Background color:": "Couleur d'arrière plan:", + "Cancel": "Annuler", + "DOCTYPE:": "DOCTYPE:", + "Document properties": "Propriétés de document", + "Document title:": "Titre du document:", + "OK": "OK", + "Primary style-sheet:": "Feuille de style primaire:", + "Text color:": "Couleur de texte:" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/he.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/he.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/he.js 30 Jan 2005 16:13:30 -0000 1.1 @@ -0,0 +1,50 @@ +// I18N for the FullPage plugin + + + +// LANG: "he", ENCODING: UTF-8 + +// Author: Liron Newman, http://www.eesh.net, + + + +// FOR TRANSLATORS: + +// + +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE + +// (at least a valid email address) + +// + +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; + +// (if this is not possible, please include a comment + +// that states what encoding is necessary.) + + + +FullPage.I18N = { + + "Alternate style-sheet:": "גיליון סגנון אחר:", + + "Background color:": "צבע רקע:", + + "Cancel": "ביטול", + + "DOCTYPE:": "DOCTYPE:", + + "Document properties": "מאפייני מסמך", + + "Document title:": "כותרת מסמך:", + + "OK": "אישור", + + "Primary style-sheet:": "גיליון סגנון ראשי:", + + "Text color:": "צבע טקסט:" + +}; + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/ro.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/ro.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/lang/ro.js 30 Jan 2005 16:13:30 -0000 1.1 @@ -0,0 +1,25 @@ +// I18N for the FullPage plugin + +// LANG: "en", ENCODING: UTF-8 | ISO-8859-1 +// Author: Mihai Bazon, http://dynarch.com/mishoo + +// FOR TRANSLATORS: +// +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE +// (at least a valid email address) +// +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; +// (if this is not possible, please include a comment +// that states what encoding is necessary.) + +FullPage.I18N = { + "Alternate style-sheet:": "Template CSS alternativ:", + "Background color:": "Culoare de fundal:", + "Cancel": "Renunţă", + "DOCTYPE:": "DOCTYPE:", + "Document properties": "Proprietăţile documentului", + "Document title:": "Titlul documentului:", + "OK": "Acceptă", + "Primary style-sheet:": "Template CSS principal:", + "Text color:": "Culoare text:" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/popups/docprop.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/popups/docprop.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/FullPage/popups/docprop.html 30 Jan 2005 16:13:30 -0000 1.1 @@ -0,0 +1,143 @@ + + + + Document properties + + + + + + + + + + + +
Document properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Document title:
DOCTYPE:
Primary style-sheet:
Alternate style-sheet:
Background color:
Text color:
Character set:
+ +
+ + +
+ + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/README =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/README,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/README 30 Jan 2005 16:13:30 -0000 1.1 @@ -0,0 +1,104 @@ +// Plugin for htmlArea to run code through the server's HTML Tidy +// By Adam Wright, for The University of Western Australia +// +// Email: zeno@ucc.gu.uwa.edu.au +// Homepage: http://blog.hipikat.org/ +// +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). +// +// Version: 0.5 +// Released to the outside world: 04/03/04 + + +HtmlTidy is a plugin for the popular cross-browser TTY WYSIWYG editor, +htmlArea (http://www.htmlarea.com/). HtmlTidy +basically queries HTML Tidy (http://tidy.sourceforge.net/) on the +server side, getting it to make-html-nice, instead of relying on masses +of javascript, which the client would have to download. + +Hi, this is a quick explanation of how to install HtmlTidy. Much better +documentation is probably required, and you're welcome to write it :) + + +* The HtmlTidy directory you should have found this file in should + include the following: + + - README + This file, providing help installing the plugin. + + - html-tidy-config.cfg + This file contains the configuration options HTML Tidy uses to + clean html, and can be modified to suit your organizations + requirements. + + - html-tidy-logic.php + This is the php script, which is queried with dirty html and is + responsible for invoking HTML Tidy, getting nice new html and + returning it to the client. + + - html-tidy.js + The main htmlArea plugin, providing functionality to tidy html + through the htmlArea interface. + + - htmlarea.js.onmode_event.diff + At the time of publishing, an extra event handler was required + inside the main htmlarea.js file. htmlarea.js may be patched + against this file to make the changes reuquired, but be aware + that the event handler may either now be in the core or + htmlarea.js may have changed enough to invalidate the patch. + + UPDATE: now it exists in the official htmlarea.js; applying + this patch is thus no longer necessary. + + - img/html-tidy.gif + The HtmlTidy icon, for the htmlArea toolbar. Created by Dan + Petty for The University of Western Australia. + + - lang/en.js + English language file. Add your own language files here and + please contribute back into the htmlArea community! + + The HtmlArea directory should be extracted to your htmlarea/plugins/ + directory. + + +* Make sure the onMode event handler mentioned above, regarding + htmlarea.js.onmode_event.diff, exists in your htmlarea.js + + +* html-tidy-logic.php should be executable, and your web server should + be configured to execute php scripts in the directory + html-tidy-logic.php exists in. + + +* HTML Tidy needs to be installed on your server, and 'tidy' should be + an alias to it, lying in the PATH known to the user executing such + web scripts. + + +* In your htmlArea configuration, do something like this: + + HTMLArea.loadPlugin("HtmlTidy"); + + editor = new HTMLArea("doc"); + editor.registerPlugin("HtmlTidy"); + + +* Then, in your htmlArea toolbar configuration, use: + + - "HT-html-tidy" + This will create the 'tidy broom' icon on the toolbar, which + will attempt to tidy html source when clicked, and; + + - "HT-auto-tidy" + This will create an "Auto Tidy" / "Don't Tidy" dropdown, to + select whether the source should be tidied automatically when + entering source view. On by default, if you'd like it otherwise + you can do so programatically after generating the toolbar :) + (Or just hack it to be otherwise...) + + +Thank you. + +Any bugs you find can be emailed to zeno@ucc.gu.uwa.edu.au Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/html-tidy-config.cfg =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/html-tidy-config.cfg,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/html-tidy-config.cfg 30 Jan 2005 16:13:30 -0000 1.1 @@ -0,0 +1,29 @@ +// Default configuration file for the htmlArea, HtmlTidy plugin +// By Adam Wright, for The University of Western Australia +// +// Evertything you always wanted to know about HTML Tidy * +// can be found at http://tidy.sourceforge.net/, and a +// quick reference to the configuration options exists at +// http://tidy.sourceforge.net/docs/quickref.html +// +// * But were afraid to ask +// +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). + +word-2000: yes +clean: no +drop-font-tags: yes +doctype: auto +drop-empty-paras: yes +drop-proprietary-attributes: yes +enclose-block-text: yes +enclose-text: yes +escape-cdata: yes +logical-emphasis: yes +indent: auto +indent-spaces: 2 +break-before-br: yes +output-xhtml: yes + +force-output: yes Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/html-tidy-logic.php =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/html-tidy-logic.php,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/html-tidy-logic.php 30 Jan 2005 16:13:30 -0000 1.1 @@ -0,0 +1,83 @@ + array("pipe", "r"), + 1 => array("pipe", "w"), + 2 => array("file", "/dev/null", "a") + ); + $process = proc_open("tidy -config html-tidy-config.cfg", $descriptorspec, $pipes); + + // Make sure the program started and we got the hooks... + // Either way, get some source code into $source + if (is_resource($process)) { + + // Feed untidy source into the stdin + fwrite($pipes[0], $source); + fclose($pipes[0]); + + // Read clean source out to the browser + while (!feof($pipes[1])) { + //echo fgets($pipes[1], 1024); + $newsrc .= fgets($pipes[1], 1024); + } + fclose($pipes[1]); + + // Clean up after ourselves + proc_close($process); + + } else { + // Better give them back what they came with, so they don't lose it all... + $newsrc = "\n" .$source. "\n"; + } + + // Split our source into an array by lines + $srcLines = explode("\n",$newsrc); + + // Get only the lines between the body tags + $startLn = 0; + while ( strpos( $srcLines[$startLn++], ' + + + + + + + + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/html-tidy.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/html-tidy.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/html-tidy.js 30 Jan 2005 16:13:30 -0000 1.1 @@ -0,0 +1,128 @@ +// Plugin for htmlArea to run code through the server's HTML Tidy +// By Adam Wright, for The University of Western Australia +// +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). + +function HtmlTidy(editor) { + this.editor = editor; + + var cfg = editor.config; + var tt = HtmlTidy.I18N; + var bl = HtmlTidy.btnList; + var self = this; + + this.onMode = this.__onMode; + + // register the toolbar buttons provided by this plugin + var toolbar = []; + for (var i = 0; i < bl.length; ++i) { + var btn = bl[i]; + if (btn == "html-tidy") { + var id = "HT-html-tidy"; + cfg.registerButton(id, tt[id], editor.imgURL(btn[0] + ".gif", "HtmlTidy"), true, + function(editor, id) { + // dispatch button press event + self.buttonPress(editor, id); + }, btn[1]); + toolbar.push(id); + } else if (btn == "html-auto-tidy") { + var ht_class = { + id : "HT-auto-tidy", + options : { "Auto-Tidy" : "auto", "Don't Tidy" : "noauto" }, + action : function (editor) { self.__onSelect(editor, this); }, + refresh : function (editor) { }, + context : "body" + }; + cfg.registerDropdown(ht_class); + } + } + + for (var i in toolbar) { + cfg.toolbar[0].push(toolbar[i]); + } +}; + +HtmlTidy._pluginInfo = { + name : "HtmlTidy", + version : "1.0", + developer : "Adam Wright", + developer_url : "http://blog.hipikat.org/", + sponsor : "The University of Western Australia", + sponsor_url : "http://www.uwa.edu.au/", + license : "htmlArea" +}; + +HtmlTidy.prototype.__onSelect = function(editor, obj) { + // Get the toolbar element object + var elem = editor._toolbarObjects[obj.id].element; + + // Set our onMode event appropriately + if (elem.value == "auto") + this.onMode = this.__onMode; + else + this.onMode = null; +}; + +HtmlTidy.prototype.__onMode = function(mode) { + if ( mode == "textmode" ) { + this.buttonPress(this.editor, "HT-html-tidy"); + } +}; + +HtmlTidy.btnList = [ + null, // separator + ["html-tidy"], + ["html-auto-tidy"] +]; + +HtmlTidy.prototype.onGenerateOnce = function() { + var editor = this.editor; + + var ifr = document.createElement("iframe"); + ifr.name = "htiframe_name"; + var s = ifr.style; + s.position = "absolute"; + s.width = s.height = s.border = s.left = s.top = s.padding = s.margin = "0px"; + document.body.appendChild(ifr); + + var frm = '
'; + + var newdiv = document.createElement('div'); + newdiv.style.display = "none"; + newdiv.innerHTML = frm; + document.body.appendChild(newdiv); +}; + +HtmlTidy.prototype.buttonPress = function(editor, id) { + var i18n = HtmlTidy.I18N; + + switch (id) { + case "HT-html-tidy": + + var oldhtml = editor.getHTML(); + + // Ask the server for some nice new html, based on the old... + var myform = document.getElementById('htiform_id'); + var txtarea = document.getElementById('htisource_id'); + txtarea.value = editor.getHTML(); + + // Apply the 'meanwhile' text, e.g. "Tidying HTML, please wait..." + editor.setHTML(i18n['tidying']); + + // The returning tidying processing script needs to find the editor + window._editorRef = editor; + + // ...And send our old source off for processing! + myform.submit(); + break; + } +}; + +HtmlTidy.prototype.processTidied = function(newSrc) { + editor = this.editor; + editor.setHTML(newSrc); +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/img/html-tidy.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/img/html-tidy.gif,v diff -u Binary files differ Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/lang/en.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/lang/en.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/HtmlTidy/lang/en.js 30 Jan 2005 16:13:31 -0000 1.1 @@ -0,0 +1,18 @@ +// I18N constants + +// LANG: "en", ENCODING: UTF-8 | ISO-8859-1 +// Author: Adam Wright, http://blog.hipikat.org/ + +// FOR TRANSLATORS: +// +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE +// (at least a valid email address) +// +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; +// (if this is not possible, please include a comment +// that states what encoding is necessary.) + +HtmlTidy.I18N = { + "tidying" : "\n Tidying up the HTML source, please wait...", + "HT-html-tidy" : "HTML Tidy" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ListType/list-type.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ListType/list-type.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ListType/list-type.js 30 Jan 2005 16:13:31 -0000 1.1 @@ -0,0 +1,89 @@ +// ListType Plugin for HTMLArea-3.0 +// Sponsored by MEdTech Unit - Queen's University +// Implementation by Mihai Bazon, http://dynarch.com/mishoo/ +// +// (c) dynarch.com 2003-2005. +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). +// +// $Id: list-type.js,v 1.1 2005/01/30 16:13:31 jeffd Exp $ + +function ListType(editor) { + this.editor = editor; + var cfg = editor.config; + var toolbar = cfg.toolbar; + var self = this; + var i18n = ListType.I18N; + var options = {}; + options[i18n["Decimal"]] = "decimal"; + options[i18n["Lower roman"]] = "lower-roman"; + options[i18n["Upper roman"]] = "upper-roman"; + options[i18n["Lower latin"]] = "lower-alpha"; + options[i18n["Upper latin"]] = "upper-alpha"; + if (!HTMLArea.is_ie) + // IE doesn't support this property; even worse, it complains + // with a gross error message when we tried to select it, + // therefore let's hide it from the damn "browser". + options[i18n["Lower greek"]] = "lower-greek"; + var obj = { + id : "ListType", + tooltip : i18n["ListStyleTooltip"], + options : options, + action : function(editor) { self.onSelect(editor, this); }, + refresh : function(editor) { self.updateValue(editor, this); }, + context : "ol" + }; + cfg.registerDropdown(obj); + var a, i, j, found = false; + for (i = 0; !found && i < toolbar.length; ++i) { + a = toolbar[i]; + for (j = 0; j < a.length; ++j) { + if (a[j] == "unorderedlist") { + found = true; + break; + } + } + } + if (found) + a.splice(j, 0, "space", "ListType", "space"); +}; + +ListType._pluginInfo = { + name : "ListType", + version : "1.0", + developer : "Mihai Bazon", + developer_url : "http://dynarch.com/mishoo/", + c_owner : "dynarch.com", + sponsor : "MEdTech Unit - Queen's University", + sponsor_url : "http://www.queensu.ca/", + license : "htmlArea" +}; + +ListType.prototype.onSelect = function(editor, combo) { + var tbobj = editor._toolbarObjects[combo.id].element; + var parent = editor.getParentElement(); + while (!/^ol$/i.test(parent.tagName)) { + parent = parent.parentNode; + } + parent.style.listStyleType = tbobj.value; +}; + +ListType.prototype.updateValue = function(editor, combo) { + var tbobj = editor._toolbarObjects[combo.id].element; + var parent = editor.getParentElement(); + while (parent && !/^ol$/i.test(parent.tagName)) { + parent = parent.parentNode; + } + if (!parent) { + tbobj.selectedIndex = 0; + return; + } + var type = parent.style.listStyleType; + if (!type) { + tbobj.selectedIndex = 0; + } else { + for (var i = tbobj.firstChild; i; i = i.nextSibling) { + i.selected = (type.indexOf(i.value) != -1); + } + } +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ListType/lang/de.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ListType/lang/de.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ListType/lang/de.js 30 Jan 2005 16:13:31 -0000 1.1 @@ -0,0 +1,23 @@ +// I18N constants + +// LANG: "en", ENCODING: UTF-8 | ISO-8859-1 +// Author: Holger Hees, http://www.systemconcept.de + +// FOR TRANSLATORS: +// +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE +// (at least a valid email address) +// +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; +// (if this is not possible, please include a comment +// that states what encoding is necessary.) + +ListType.I18N = { + "Decimal" : "1-Zahlen", + "Lower roman" : "i-Roemisch", + "Upper roman" : "I-Roemisch", + "Lower latin" : "a-Zeichen", + "Upper latin" : "A-Zeichen", + "Lower greek" : "Griechisch", + "ListStyleTooltip" : "W�hlen Sie einen Typ f�r die Nummerierung aus" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ListType/lang/en.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ListType/lang/en.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/ListType/lang/en.js 30 Jan 2005 16:13:31 -0000 1.1 @@ -0,0 +1,23 @@ +// I18N constants + +// LANG: "en", ENCODING: UTF-8 | ISO-8859-1 +// Author: Mihai Bazon, http://dynarch.com/mishoo + +// FOR TRANSLATORS: +// +// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE +// (at least a valid email address) +// +// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; +// (if this is not possible, please include a comment +// that states what encoding is necessary.) + +ListType.I18N = { + "Decimal" : "Decimal numbers", + "Lower roman" : "Lower roman numbers", + "Upper roman" : "Upper roman numbers", + "Lower latin" : "Lower latin letters", + "Upper latin" : "Upper latin letters", + "Lower greek" : "Lower greek letters", + "ListStyleTooltip" : "Choose list style type (for ordered lists)" +}; Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/SpellChecker/readme-tech.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/SpellChecker/readme-tech.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/SpellChecker/readme-tech.html 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/SpellChecker/readme-tech.html 30 Jan 2005 16:13:31 -0000 1.2 @@ -1,115 +1,114 @@ - - - - HTMLArea Spell Checker - - - -

HTMLArea Spell Checker

- -

The HTMLArea Spell Checker subsystem consists of the following - files:

- -
    - -
  • spell-checker.js — the spell checker plugin interface for - HTMLArea
  • - -
  • spell-checker-ui.html — the HTML code for the user - interface
  • - -
  • spell-checker-ui.js — functionality of the user - interface
  • - -
  • spell-checker-logic.cgi — Perl CGI script that checks a text - given through POST for spelling errors
  • - -
  • spell-checker-style.css — style for mispelled words
  • - -
  • lang/en.js — main language file (English).
  • - -
- -

Process overview

- -

- When an end-user clicks the "spell-check" button in the HTMLArea - editor, a new window is opened with the URL of "spell-check-ui.html". - This window initializes itself with the text found in the editor (uses - window.opener.SpellChecker.editor global variable) and it - submits the text to the server-side script "spell-check-logic.cgi". - The target of the FORM is an inline frame which is used both to - display the text and correcting. -

- -

- Further, spell-check-logic.cgi calls Aspell for each portion of plain - text found in the given HTML. It rebuilds an HTML file that contains - clear marks of which words are incorrect, along with suggestions for - each of them. This file is then loaded in the inline frame. Upon - loading, a JavaScript function from "spell-check-ui.js" is called. - This function will retrieve all mispelled words from the HTML of the - iframe and will setup the user interface so that it allows correction. -

- -

The server-side script (spell-check-logic.cgi)

- -

- Unicode safety — the program is - Unicode safe. HTML entities are expanded into their corresponding - Unicode characters. These characters will be matched as part of the - word passed to Aspell. All texts passed to Aspell are in Unicode - (when appropriate). However, Aspell seems to not support Unicode - yet (thread concerning Aspell and Unicode). - This mean that words containing Unicode - characters that are not in 0..255 are likely to be reported as "mispelled" by Aspell. -

- -

- I digged the Net for a couple of hours today and I can't seem to find - any open-source spell checker that has Unicode support. For this - reason we keep using Aspell, because it also seems to have the - best suggestions engine. Unicode support will eventually be - implemented in Aspell. Email - Kevin Atkinson (Aspell author and maintainer) about this ;-) -

- -

- The Perl Unicode manual (man perluniintro) states: -

- -
- - Starting from Perl 5.6.0, Perl has had the capacity to handle Unicode - natively. Perl 5.8.0, however, is the first recommended release for - serious Unicode work. The maintenance release 5.6.1 fixed many of the - problems of the initial Unicode implementation, but for example regular - expressions still do not work with Unicode in 5.6.1. - -
- -

In other words, do not assume that this script is - Unicode-safe on Perl interpreters older than 5.8.0.

- -

The following Perl modules are required:

- - - -

Of these, only Text::Aspell might need to be installed manually. The - others are likely to be available by default in most Perl distributions.

- -
-
Mihai Bazon
- - -Last modified on Sun Aug 10 12:28:24 2003 - - - - + + + + HTMLArea Spell Checker + + + +

HTMLArea Spell Checker

+ +

The HTMLArea Spell Checker subsystem consists of the following + files:

+ +
    + +
  • spell-checker.js — the spell checker plugin interface for + HTMLArea
  • + +
  • spell-checker-ui.html — the HTML code for the user + interface
  • + +
  • spell-checker-ui.js — functionality of the user + interface
  • + +
  • spell-checker-logic.cgi — Perl CGI script that checks a text + given through POST for spelling errors
  • + +
  • spell-checker-style.css — style for mispelled words
  • + +
  • lang/en.js — main language file (English).
  • + +
+ +

Process overview

+ +

+ When an end-user clicks the "spell-check" button in the HTMLArea + editor, a new window is opened with the URL of "spell-check-ui.html". + This window initializes itself with the text found in the editor (uses + window.opener.SpellChecker.editor global variable) and it + submits the text to the server-side script "spell-check-logic.cgi". + The target of the FORM is an inline frame which is used both to + display the text and correcting. +

+ +

+ Further, spell-check-logic.cgi calls Aspell for each portion of plain + text found in the given HTML. It rebuilds an HTML file that contains + clear marks of which words are incorrect, along with suggestions for + each of them. This file is then loaded in the inline frame. Upon + loading, a JavaScript function from "spell-check-ui.js" is called. + This function will retrieve all mispelled words from the HTML of the + iframe and will setup the user interface so that it allows correction. +

+ +

The server-side script (spell-check-logic.cgi)

+ +

+ Unicode safety — the program is + Unicode safe. HTML entities are expanded into their corresponding + Unicode characters. These characters will be matched as part of the + word passed to Aspell. All texts passed to Aspell are in Unicode + (when appropriate). However, Aspell seems to not support Unicode + yet (thread concerning Aspell and Unicode). + This mean that words containing Unicode + characters that are not in 0..255 are likely to be reported as "mispelled" by Aspell. +

+ +

+ Update: though I've never seen it mentioned + anywhere, it looks that Aspell does, in fact, speak + Unicode. Or else, maybe Text::Aspell does + transparent conversion; anyway, this new version of our + SpellChecker plugin is, as tests show so far, fully + Unicode-safe... well, probably the only freeware + Web-based spell-checker which happens to have Unicode support. +

+ +

+ The Perl Unicode manual (man perluniintro) states: +

+ +
+ + Starting from Perl 5.6.0, Perl has had the capacity to handle Unicode + natively. Perl 5.8.0, however, is the first recommended release for + serious Unicode work. The maintenance release 5.6.1 fixed many of the + problems of the initial Unicode implementation, but for example regular + expressions still do not work with Unicode in 5.6.1. + +
+ +

In other words, do not assume that this script is + Unicode-safe on Perl interpreters older than 5.8.0.

+ +

The following Perl modules are required:

+ + + +

Of these, only Text::Aspell might need to be installed manually. The + others are likely to be available by default in most Perl distributions.

+ +
+
Mihai Bazon
+ + Last modified: Fri Jan 30 19:14:11 EET 2004 + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/SpellChecker/spell-check-logic.cgi =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/SpellChecker/spell-check-logic.cgi,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/SpellChecker/spell-check-logic.cgi 4 Mar 2004 18:32:11 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/plugins/SpellChecker/spell-check-logic.cgi 30 Jan 2005 16:13:31 -0000 1.2 @@ -1,155 +1,210 @@ -#! /usr/bin/perl -w - -# Spell Checker Plugin for HTMLArea-3.0 -# Implementation by Mihai Bazon. Sponsored by www.americanbible.org -# -# htmlArea v3.0 - Copyright (c) 2002 interactivetools.com, inc. -# This notice MUST stay intact for use (see license.txt). -# -# A free WYSIWYG editor replacement for - + - + + + + + + + + + + + + +
+ + + +
+ + + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/popups/insert_image.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/popups/insert_image.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/popups/insert_image.html 4 Mar 2004 18:32:14 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/popups/insert_image.html 30 Jan 2005 16:13:32 -0000 1.2 @@ -1,216 +1,382 @@ - - - - Insert Image - - - - - - - - - - - -
Insert Image
- -
- - - - - - - - - - - - - -
Image URL: - -
Alternate text:
- -

- -

-Layout - -
- -
Alignment:
- - -

- -

Border thickness:
- - -
- -
- -
-Spacing - -
- -
Horizontal:
- - -

- -

Vertical:
- - -
- -
- -
-
- - -
- -
- - - + + + + + + + Insert Image + + + + + + + + + + + + + + + + + + + + + + + +
Insert Image
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Image URL: + + + +
Alternate text:
+ + + +

+ + + +

+ +Layout + + + +
+ + + +
Alignment:
+ + + + + +

+ + + +

Border thickness:
+ + + + + +
+ + + +
+ + + +
+ +Spacing + + + +
+ + + +
Horizontal:
+ + + + + +

+ + + +

Vertical:
+ + + + + +
+ + + +
+ +
+ + + + + + + + + + + +
+ + Image Preview:
+ + + +
+ +
+ + + +
+ +
+ + + + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/popups/insert_table.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/popups/insert_table.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/popups/insert_table.html 4 Mar 2004 18:32:14 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/popups/insert_table.html 30 Jan 2005 16:13:32 -0000 1.2 @@ -1,173 +1,175 @@ - - - - Insert Table - - - - - - - - - - - -
Insert Table
- -
- - - - - - - - - - - - - - - - - - - -
Rows:
Cols:Width:
- -

- -

-Layout - -
- -
Alignment:
- - -

- -

Border thickness:
- - -
- -
- -
-Spacing - -
- -
Cell spacing:
- - -

- -

Cell padding:
- - -
- -
- -
-
- - -
- -
- - - + + + + Insert Table + + + + + + + + + + + +
Insert Table
+ +
+ + + + + + + + + + + + + + + + + +
Rows:Width:
Cols:
+ +

+ +

+Layout + +
+ +
Alignment:
+ + +

+ +

Border thickness:
+ + +
+ +
+ +
+Spacing + +
+ +
Cell spacing:
+ + +

+ +

Cell padding:
+ + +
+ +
+ +
+ + +
+ +
+ + + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/popups/link.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/popups/link.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/popups/link.html 30 Jan 2005 16:13:32 -0000 1.1 @@ -0,0 +1,158 @@ + + + + Insert/Modify Link + + + + + + + + +
Insert/Modify Link
+
+ + + + + + + + + + + + + +
URL:
Title (tooltip):
Target: + +
+ +
+ + +
+
+ + Index: openacs-4/packages/acs-templating/www/resources/htmlarea/popups/old-fullscreen.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/popups/old-fullscreen.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/popups/old-fullscreen.html 4 Mar 2004 18:32:14 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/popups/old-fullscreen.html 30 Jan 2005 16:13:32 -0000 1.2 @@ -1,131 +1,261 @@ - -Fullscreen Editor - + - - - + if (event.keyCode == 27) { -
+ update_parent(); -
+ window.close(); + return; + + } + +} + + + +/* ---------------------------------------------------------------------- *\ + + Function : cloneObject + + Description : copy an object by value instead of by reference + + Usage : var newObj = cloneObject(oldObj); + +\* ---------------------------------------------------------------------- */ + + + +function cloneObject(obj) { + + var newObj = new Object; + + + + // check for array objects + + if (obj.constructor.toString().indexOf('function Array(') == 1) { + + newObj = obj.constructor(); + + } + + + + for (var n in obj) { + + var node = obj[n]; + + if (typeof node == 'object') { newObj[n] = cloneObject(node); } + + else { newObj[n] = node; } + + } + + + + return newObj; + +} + + + +/* ---------------------------------------------------------------------- *\ + + Function : resize_editor + + Description : resize the editor when the user resizes the popup + +\* ---------------------------------------------------------------------- */ + + + +function resize_editor() { // resize editor to fix window + + var editor = document.all['_editor_editor']; + + + + newWidth = document.body.offsetWidth; + + newHeight = document.body.offsetHeight - editor.offsetTop; + + + + if (newWidth < 0) { newWidth = 0; } + + if (newHeight < 0) { newHeight = 0; } + + + + editor.style.width = newWidth; + + editor.style.height = newHeight; + +} + + + +/* ---------------------------------------------------------------------- *\ + + Function : init + + Description : run this code on page load + +\* ---------------------------------------------------------------------- */ + + + +function init() { + + // change maximize button to minimize button + + config.btnList["popupeditor"] = ['popupeditor', 'Minimize Editor', 'update_parent(); window.close();', 'fullscreen_minimize.gif']; + + + + // set htmlmode button to refer to THIS editor + + config.btnList["htmlmode"] = ['HtmlMode', 'View HTML Source', 'editor_setmode(\'editor\')', 'ed_html.gif']; + + + + // change image url to be relative to current path + + config.imgURL = "../images/"; + + + + // generate editor and resize it + + editor_generate('editor', config); + + resize_editor(); + + + + // switch mode if needed + + if (parent_config.mode == 'textedit') { editor_setmode(objname, 'textedit'); } + + + + // set child window contents + + var parentHTML = opener.editor_getHTML(parent_objname); + + editor_setHTML(objname, parentHTML); + + + + // continuously update parent editor window + + window.setInterval(update_parent, 333); + + + + // setup event handlers + + document.body.onkeypress = _CloseOnEsc; + + window.onresize = resize_editor; + +} + + + +/* ---------------------------------------------------------------------- *\ + + Function : update_parent + + Description : update parent window editor field with contents from child window + +\* ---------------------------------------------------------------------- */ + + + +function update_parent() { + + var childHTML = editor_getHTML(objname); + + opener.editor_setHTML(parent_objname, childHTML); + +} + + + + + + + + + + + + + +
+ + + +
+ + + \ No newline at end of file Index: openacs-4/packages/acs-templating/www/resources/htmlarea/popups/old_insert_image.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/popups/old_insert_image.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/popups/old_insert_image.html 4 Mar 2004 18:32:14 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/popups/old_insert_image.html 30 Jan 2005 16:13:32 -0000 1.2 @@ -1,206 +1,411 @@ - + - - - - - -Insert Image - - - - +function _getTextRange(elm) { -
Image URL:
- + var r = elm.parentTextEdit.createTextRange(); -
Alternate Text:
- + r.moveToElementText(elm); -
-Layout -
+ return r; -
-Spacing -
+} -
Alignment:
- + -
Horizontal:
- +window.onerror = HandleError -
Border Thickness:
- + -
Vertical:
- +function HandleError(message, url, line) { - - + var str = "An error has occurred in this dialog." + "\n\n" - + + "Error: " + line + "\n" + message; + + alert(str); + + window.close(); + + return true; + +} + + + +function Init() { + + var elmSelectedImage; + + var htmlSelectionControl = "Control"; + + var globalDoc = window.dialogArguments; + + var grngMaster = globalDoc.selection.createRange(); + + + + // event handlers + + document.body.onkeypress = _CloseOnEsc; + + btnOK.onclick = new Function("btnOKClick()"); + + + + txtFileName.fImageLoaded = false; + + txtFileName.intImageWidth = 0; + + txtFileName.intImageHeight = 0; + + + + if (globalDoc.selection.type == htmlSelectionControl) { + + if (grngMaster.length == 1) { + + elmSelectedImage = grngMaster.item(0); + + if (elmSelectedImage.tagName == "IMG") { + + txtFileName.fImageLoaded = true; + + if (elmSelectedImage.src) { + + txtFileName.value = elmSelectedImage.src.replace(/^[^*]*(\*\*\*)/, "$1"); // fix placeholder src values that editor converted to abs paths + + txtFileName.intImageHeight = elmSelectedImage.height; + + txtFileName.intImageWidth = elmSelectedImage.width; + + txtVertical.value = elmSelectedImage.vspace; + + txtHorizontal.value = elmSelectedImage.hspace; + + txtBorder.value = elmSelectedImage.border; + + txtAltText.value = elmSelectedImage.alt; + + selAlignment.value = elmSelectedImage.align; + + } + + } + + } + + } + + txtFileName.value = txtFileName.value || "http://"; + + txtFileName.focus(); + +} + + + +function _isValidNumber(txtBox) { + + var val = parseInt(txtBox); + + if (isNaN(val) || val < 0 || val > 999) { return false; } + + return true; + +} + + + +function btnOKClick() { + + var elmImage; + + var intAlignment; + + var htmlSelectionControl = "Control"; + + var globalDoc = window.dialogArguments; + + var grngMaster = globalDoc.selection.createRange(); + + + + // error checking + + + + if (!txtFileName.value || txtFileName.value == "http://") { + + alert("Image URL must be specified."); + + txtFileName.focus(); + + return; + + } + + if (txtHorizontal.value && !_isValidNumber(txtHorizontal.value)) { + + alert("Horizontal spacing must be a number between 0 and 999."); + + txtHorizontal.focus(); + + return; + + } + + if (txtBorder.value && !_isValidNumber(txtBorder.value)) { + + alert("Border thickness must be a number between 0 and 999."); + + txtBorder.focus(); + + return; + + } + + if (txtVertical.value && !_isValidNumber(txtVertical.value)) { + + alert("Vertical spacing must be a number between 0 and 999."); + + txtVertical.focus(); + + return; + + } + + + + // delete selected content and replace with image + + if (globalDoc.selection.type == htmlSelectionControl && !txtFileName.fImageLoaded) { + + grngMaster.execCommand('Delete'); + + grngMaster = globalDoc.selection.createRange(); + + } + + + + idstr = "\" id=\"556e697175657e537472696e67"; // new image creation ID + + if (!txtFileName.fImageLoaded) { + + grngMaster.execCommand("InsertImage", false, idstr); + + elmImage = globalDoc.all['556e697175657e537472696e67']; + + elmImage.removeAttribute("id"); + + elmImage.removeAttribute("src"); + + grngMaster.moveStart("character", -1); + + } else { + + elmImage = grngMaster.item(0); + + if (elmImage.src != txtFileName.value) { + + grngMaster.execCommand('Delete'); + + grngMaster = globalDoc.selection.createRange(); + + grngMaster.execCommand("InsertImage", false, idstr); + + elmImage = globalDoc.all['556e697175657e537472696e67']; + + elmImage.removeAttribute("id"); + + elmImage.removeAttribute("src"); + + grngMaster.moveStart("character", -1); + + txtFileName.fImageLoaded = false; + + } + + grngMaster = _getTextRange(elmImage); + + } + + + + if (txtFileName.fImageLoaded) { + + elmImage.style.width = txtFileName.intImageWidth; + + elmImage.style.height = txtFileName.intImageHeight; + + } + + + + if (txtFileName.value.length > 2040) { + + txtFileName.value = txtFileName.value.substring(0,2040); + + } + + + + elmImage.src = txtFileName.value; + + + + if (txtHorizontal.value != "") { elmImage.hspace = parseInt(txtHorizontal.value); } + + else { elmImage.hspace = 0; } + + + + if (txtVertical.value != "") { elmImage.vspace = parseInt(txtVertical.value); } + + else { elmImage.vspace = 0; } + + + + elmImage.alt = txtAltText.value; + + + + if (txtBorder.value != "") { elmImage.border = parseInt(txtBorder.value); } + + else { elmImage.border = 0; } + + + + elmImage.align = selAlignment.value; + + grngMaster.collapse(false); + + grngMaster.select(); + + window.close(); + +} + + + + + + + + + +
Image URL:
+ + + + + +
Alternate Text:
+ + + + + +
+ +Layout + +
+ + + +
+ +Spacing + +
+ + + +
Alignment:
+ + + + + +
Horizontal:
+ + + + + +
Border Thickness:
+ + + + + +
Vertical:
+ + + + + + + + + + + + + \ No newline at end of file Index: openacs-4/packages/acs-templating/www/resources/htmlarea/popups/popup.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/htmlarea/popups/popup.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/htmlarea/popups/popup.js 4 Mar 2004 18:32:14 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/htmlarea/popups/popup.js 30 Jan 2005 16:13:32 -0000 1.2 @@ -1,42 +1,114 @@ -function __dlg_onclose() { - if (!document.all) { - opener.Dialog._return(null); - } -}; - -function __dlg_init() { - if (!document.all) { - // init dialogArguments, as IE gets it - window.dialogArguments = opener.Dialog._arguments; - window.sizeToContent(); - window.sizeToContent(); // for reasons beyond understanding, - // only if we call it twice we get the - // correct size. - window.addEventListener("unload", __dlg_onclose, true); - // center on parent - var px1 = opener.screenX; - var px2 = opener.screenX + opener.outerWidth; - var py1 = opener.screenY; - var py2 = opener.screenY + opener.outerHeight; - var x = (px2 - px1 - window.outerWidth) / 2; - var y = (py2 - py1 - window.outerHeight) / 2; - window.moveTo(x, y); - var body = document.body; - window.innerHeight = body.offsetHeight; - window.innerWidth = body.offsetWidth; - } else { - var body = document.body; - window.dialogHeight = body.offsetHeight + 50 + "px"; - window.dialogWidth = body.offsetWidth + "px"; - } -}; - -// closes the dialog and passes the return info upper. -function __dlg_close(val) { - if (document.all) { // IE - window.returnValue = val; - } else { - opener.Dialog._return(val); - } - window.close(); -}; +// htmlArea v3.0 - Copyright (c) 2002, 2003 interactivetools.com, inc. +// This copyright notice MUST stay intact for use (see license.txt). +// +// Portions (c) dynarch.com, 2003 +// +// A free WYSIWYG editor replacement for