Return-Path: Delivered-To: apmail-incubator-roller-commits-archive@www.apache.org Received: (qmail 5596 invoked from network); 8 Oct 2006 21:15:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Oct 2006 21:15:30 -0000 Received: (qmail 50864 invoked by uid 500); 8 Oct 2006 21:15:28 -0000 Delivered-To: apmail-incubator-roller-commits-archive@incubator.apache.org Received: (qmail 50785 invoked by uid 500); 8 Oct 2006 21:15:28 -0000 Mailing-List: contact roller-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: roller-dev@incubator.apache.org Delivered-To: mailing list roller-commits@incubator.apache.org Received: (qmail 50574 invoked by uid 99); 8 Oct 2006 21:15:26 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Oct 2006 14:15:26 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received: from [140.211.166.113] ([140.211.166.113:53142] helo=eris.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id DA/D3-01505-6F959254 for ; Sun, 08 Oct 2006 13:05:12 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 6CE1C1A9872; Sun, 8 Oct 2006 12:54:38 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r454197 [13/29] - in /incubator/roller/trunk/web: WEB-INF/classes/ roller-ui/authoring/editors/ roller-ui/authoring/editors/xinha/ roller-ui/authoring/editors/xinha/conf/ roller-ui/authoring/editors/xinha/contrib/ roller-ui/authoring/editor... Date: Sun, 08 Oct 2006 19:54:16 -0000 To: roller-commits@incubator.apache.org From: snoopdave@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061008195438.6CE1C1A9872@eris.apache.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/forms.js URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/forms.js?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/forms.js (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/forms.js Sun Oct 8 12:53:13 2006 @@ -0,0 +1,354 @@ +// Form plugin for HTMLArea +// Distributed under the same terms as HTMLArea itself. +// This notice MUST stay intact for use (see license.txt). + + +function Forms(editor) { + this.editor = editor; + var cfg = editor.config; + var bl = Forms.btnList; + var self = this; + // register the toolbar buttons provided by this plugin + var toolbar = ["linebreak"]; + for (var i = 0; i < bl.length; ++i) { + var btn = bl[i]; + if (!btn) { + toolbar.push("separator"); + } else { + var id = btn[0]; + cfg.registerButton(id, HTMLArea._lc(btn[1]), editor.imgURL("ed_" + btn[0] + ".gif", "Forms"), false, + function(editor, id) { + // dispatch button press event + self.buttonPress(editor, id); + }); + toolbar.push(id); + } + } + // add a new line in the toolbar + cfg.toolbar.push(toolbar); +} + +Forms._pluginInfo = { + name : "Forms", + origin : "version: 1.0, by Nelson Bright, BrightWork, Inc., http://www.brightworkweb.com", + version : "2.0", + developer : "Udo Schmal", + developer_url : "", + sponsor : "L.N.Schaffrath NeueMedien", + sponsor_url : "http://www.schaffrath-neuemedien.de/", + c_owner : "Udo Schmal & Schaffrath-NeueMedien", + license : "htmlArea" +}; + +// the list of buttons added by this plugin +Forms.btnList = [ + // form properties button + null, // separator + ["form", "Form"], + null, // separator + // form elements + ["textarea", "Textarea"], + ["select", "Selection Field"], + ["checkbox", "Checkbox"], + ["radio", "Radio Button"], + ["text", "Text Field"], + ["password", "Password Field"], + ["file", "File Field"], + ["button", "Button"], + ["submit", "Submit Button"], + ["reset", "Reset Button"], + ["image", "Image Button"], + ["hidden", "Hidden Field"], + ["label", "Label"], + ["fieldset", "Field Set"] + ]; + +Forms.prototype._lc = function(string) { + return HTMLArea._lc(string, 'Forms'); +}; + +Forms.prototype.onGenerate = function() { + var style_id = "Form-style" + var style = this.editor._doc.getElementById(style_id); + if (style == null) { + style = this.editor._doc.createElement("link"); + style.id = style_id; + style.rel = 'stylesheet'; + style.href = _editor_url + 'plugins/Forms/forms.css'; + this.editor._doc.getElementsByTagName("HEAD")[0].appendChild(style); + } +}; + +Forms.prototype.buttonPress = function(editor,button_id, node) { + function optionValues(text,value) { + this.text = text; + this.value = value; + } + var outparam = new Object(); + var type = button_id; + var sel = editor._getSelection(); + var range = editor._createRange(sel); + if (button_id=="form") { //Form + // see if selection is inside an existing 'form' tag + var pe = editor.getParentElement(); + var frm = null; + while (pe && (pe.nodeType == 1) && (pe.tagName.toLowerCase() != 'body')) { + if(pe.tagName.toLowerCase() == "form") { + frm = pe; + break; + } else + pe = pe.parentNode; + } + if (frm) { + outparam.f_name = frm.name; + outparam.f_action = frm.action; + outparam.f_method = frm.method; + outparam.f_enctype = frm.enctype; + outparam.f_target = frm.target; + } else {; + outparam.f_name = ""; + outparam.f_action = ""; + outparam.f_method = ""; + outparam.f_enctype = ""; + outparam.f_target = ""; + } + editor._popupDialog("plugin://Forms/form", function(param) { + if (param) { + if(frm) { + frm.name = param["f_name"]; + setAttr(frm, "action", param["f_action"]); + setAttr(frm, "method", param["f_method"]); + setAttr(frm, "enctype",param["f_enctype"]); + setAttr(frm, "target", param["f_target"]); + } else { + frm = '
'); + } + } + }, outparam); + + } else { // form element (checkbox, radio, text, password, textarea, select, button, submit, reset, image, hidden) + var tagName = ""; + // see if selection is an form element + if (typeof node == "undefined") { + node = editor.getParentElement(); + var tag = node.tagName.toLowerCase() + if (node && (tag == "legend")) { + node = node.parentElement; + tag = node.tagName.toLowerCase(); + } + if (node && !(tag == "textarea" || tag == "select" || tag == "input" || tag == "label" || tag == "fieldset")) + node = null; + } + + if(node) { + type = node.tagName.toLowerCase(); + outparam.f_name = node.name; + tagName = node.tagName; + if (type == "input") { + outparam.f_type = node.type; + type = node.type; + } + switch (type) { + case "textarea": + outparam.f_cols = node.cols; + outparam.f_rows = node.rows; + outparam.f_text = node.innerHTML; + outparam.f_wrap = node.getAttribute("wrap"); + outparam.f_readOnly = node.getAttribute("readOnly"); + outparam.f_disabled = node.getAttribute("disabled"); + outparam.f_tabindex = node.getAttribute("tabindex"); + outparam.f_accesskey = node.getAttribute("accesskey"); + break; + case "select": + outparam.f_size = parseInt(node.size); + outparam.f_multiple = node.getAttribute("multiple"); + outparam.f_disabled = node.getAttribute("disabled"); + outparam.f_tabindex = node.getAttribute("tabindex"); + var a_options = new Array(); + for (var i=0; i<=node.options.length-1; i++) { + a_options[i] = new optionValues(node.options[i].text, node.options[i].value); + } + outparam.f_options = a_options; + break; + case "text": + case "password": + outparam.f_value = node.value; + outparam.f_size = node.size; + outparam.f_maxLength = node.maxLength; + outparam.f_readOnly = node.getAttribute("readOnly"); + outparam.f_disabled = node.getAttribute("disabled"); + outparam.f_tabindex = node.getAttribute("tabindex"); + outparam.f_accesskey = node.getAttribute("accesskey"); + break; + case "hidden": + outparam.f_value = node.value; + break; + case "submit": + case "reset": + outparam.f_value = node.value; + outparam.f_disabled = node.getAttribute("disabled"); + outparam.f_tabindex = node.getAttribute("tabindex"); + outparam.f_accesskey = node.getAttribute("accesskey"); + break; + case "checkbox": + case "radio": + outparam.f_value = node.value; + outparam.f_checked = node.checked; + outparam.f_disabled = node.getAttribute("disabled"); + outparam.f_tabindex = node.getAttribute("tabindex"); + outparam.f_accesskey = node.getAttribute("accesskey"); + break; + case "button": + outparam.f_value = node.value; + outparam.f_onclick = node.getAttribute("onclick"); + outparam.f_disabled = node.getAttribute("disabled"); + outparam.f_tabindex = node.getAttribute("tabindex"); + outparam.f_accesskey = node.getAttribute("accesskey"); + break; + case "image": + outparam.f_value = node.value; + outparam.f_src = node.src; + outparam.f_disabled = node.getAttribute("disabled"); + outparam.f_tabindex = node.getAttribute("tabindex"); + outparam.f_accesskey = node.getAttribute("accesskey"); + break; + case "file": + outparam.f_disabled = node.getAttribute("disabled"); + outparam.f_tabindex = node.getAttribute("tabindex"); + outparam.f_accesskey = node.getAttribute("accesskey"); + break; + case "label": + outparam.f_text = node.innerHTML; + outparam.f_for = node.getAttribute("for"); + outparam.f_accesskey = node.getAttribute("accesskey"); + break; + case "fieldset": + if(node.firstChild.tagName.toLowerCase()=="legend") + outparam.f_text = node.firstChild.innerHTML; + else + outparam.f_text = ""; + break; + } + } else { + outparam.f_name = ""; + switch (button_id) { + case "textarea": + case "select": + case "label": + case "fieldset": + tagName = button_id; + break; + default: + tagName = "input"; + outparam.f_type = button_id; + break; + } + outparam.f_options = ""; + outparam.f_cols = "20"; + outparam.f_rows = "4"; + outparam.f_multiple = "false"; + outparam.f_value = ""; + outparam.f_size = ""; + outparam.f_maxLength = ""; + outparam.f_checked = ""; + outparam.f_src = ""; + outparam.f_onclick = ""; + outparam.f_wrap = ""; + outparam.f_readOnly = "false"; + outparam.f_disabled = "false"; + outparam.f_tabindex = ""; + outparam.f_accesskey = ""; + outparam.f_for = ""; + outparam.f_text = ""; + outparam.f_legend = ""; + } + editor._popupDialog("plugin://Forms/" + tagName + ".html", function(param) { + if (param) { + if(param["f_cols"]) + if (isNaN(parseInt(param["f_cols"],10)) || parseInt(param["f_cols"],10) <= 0) + param["f_cols"] = ""; + if(param["f_rows"]) + if(isNaN(parseInt(param["f_rows"],10)) || parseInt(param["f_rows"],10) <= 0) + param["f_rows"] = ""; + if(param["f_size"]) + if(isNaN(parseInt(param["f_size"],10)) || parseInt(param["f_size"],10) <= 0) + param["f_size"] = ""; + if(param["f_maxlength"]) + if(isNaN(parseInt(param["f_maxLength"],10)) || parseInt(param["f_maxLength"],10) <= 0) + param["f_maxLength"] = ""; + if(node) { + //prepare existing Element + for (field in param) { + alert(field.substring(2,20) + '=' + param[field]); + if ((field=="f_text") || (field=="f_options") || (field=="f_onclick") || (field=="f_checked"))continue; + if (param[field] != "") + node.setAttribute(field.substring(2,20), param[field]); + else + node.removeAttribute(field.substring(2,20)); + } + if (type == "textarea") { + node.innerHTML = param["f_text"]; + } else if(type == "select") { + node.options.length = 0; + var optionsList = param["f_options"]; + for (i=0; i<= optionsList.length-1; i++) { + node.options[i] = new Option(optionsList[i].text, optionsList[i].value) + } + } else if(type == "label") { + node.innerHTML = param["f_text"]; + } else if(type == "fieldset") { + if(outparam.f_text != "") { + if(node.firstChild.tagName.toLowerCase()=="legend") + node.firstChild.innerHTML = param["f_text"]; + } else {}// not implemented jet + } else if((type == "checkbox") || (type == "radio")) { //input + if(param["f_checked"]!="") + node.checked = true; + else + node.checked = false; + } else { + if(param["f_onclick"]){ + node.onclick = ""; + if(param["f_onclick"]!="") + node.onclick = param["f_onclick"]; + } + } + } else { + //create Element + var text = ""; + for (field in param) { + if (!param[field]) continue; + if ((param[field]=="") || (field=="f_text")|| (field=="f_options"))continue; + text += " " + field.substring(2,20) + '="' + param[field] + '"'; + } + + if(type == "textarea") { + text = '' + param["f_text"] + ''; + } else if(type == "select") { + text = ''; + var optionsList = param["f_options"]; + for (i=0; i<= optionsList.length-1; i++) { + text += ''; + } + text += ''; + } else if(type == "label") { + text = '' + param["f_text"] + ''; + } else if(type == "fieldset") { + text = ''; + if (param["f_legend"] != "") text += '' + param["f_text"] + ''; + text += ''; + } else { + text = ''; + } + editor.insertHTML(text); + } + } + }, outparam); + } +}; \ No newline at end of file Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_button.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_button.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_button.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_checkbox.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_checkbox.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_checkbox.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_fieldset.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_fieldset.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_fieldset.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_file.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_file.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_file.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_form.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_form.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_form.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_hidden.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_hidden.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_hidden.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_image.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_image.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_image.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_label.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_label.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_label.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_password.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_password.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_password.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_radio.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_radio.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_radio.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_reset.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_reset.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_reset.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_select.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_select.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_select.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_submit.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_submit.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_submit.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_text.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_text.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_text.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_textarea.gif URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_textarea.gif?view=auto&rev=454197 ============================================================================== Binary file - no diff available. Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/img/ed_textarea.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/fieldset.html URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/fieldset.html?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/fieldset.html (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/fieldset.html Sun Oct 8 12:53:13 2006 @@ -0,0 +1,46 @@ + + + + Insert/Edit Form Element FIELDSET + + + + + + + +
Form Element: FIELDSET
+ +
Legend:
+ +

+

+ + +
+ + + \ No newline at end of file Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/form.html URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/form.html?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/form.html (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/form.html Sun Oct 8 12:53:13 2006 @@ -0,0 +1,90 @@ + + + + Insert/Edit Form + + + + + + + +
Form
+
+
Form Name:
+ +

+ +

+ Form handler script +
+
Action URL:
+ +

+

Method:
+ +
+
Encoding:
+ +

+

Target Frame:
+ +

+

+ +
+ + +
+
+ + + \ No newline at end of file Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/input.html URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/input.html?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/input.html (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/input.html Sun Oct 8 12:53:13 2006 @@ -0,0 +1,179 @@ + + + + Insert/Edit Form Element INPUT + + + + + + + + +
+
+
Name/ID:
+ +

+

Value:
+ +

+

Disabled
+ +

+ +

+
Checked
+ +

+

+ +
Tab Index:
+ +

+

Access Key:
+ +

+ +

+
Read Only
+ +

+ +

+ Dimensions +
+
Size:
+ +
+
Max length:
+ +
+
+
+
+
+ Button Script +
+
'onClick'=
+ +
+
+
+
+
+ Image source +
+
Image URL:
+ +
+
+
+
+ + +
+
+ + + \ No newline at end of file Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/label.html URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/label.html?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/label.html (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/label.html Sun Oct 8 12:53:13 2006 @@ -0,0 +1,59 @@ + + + + Insert/Edit Form Element LABEL + + + + + + + +
Form Element: LABEL
+
+
Text:
+ +

+

For Control:
+ +

+

Access Key:
+ +

+

+ + +
+
+ + \ No newline at end of file Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/select.html URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/select.html?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/select.html (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/select.html Sun Oct 8 12:53:13 2006 @@ -0,0 +1,209 @@ + + + + Insert/Edit Form Element SELECT + + + + + + + +
Form Element: SELECT
+
+
Name/ID:
+ +

+

Size:
+ +

+

Multiple Select
+ +

+

Disabled
+ +

+

Tab Index:
+ +

+

+
+ Options + + + + + +
+ + +
+
+ +
+
+ + + + + + + + +
Lable:Value:
+
+
+ + +
+
+ + \ No newline at end of file Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/textarea.html URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/textarea.html?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/textarea.html (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/Forms/popups/textarea.html Sun Oct 8 12:53:13 2006 @@ -0,0 +1,113 @@ + + + + Insert/Edit Form Element TEXTAREA + + + + + + + +
Form Element: TEXTAREA
+
+
Name/ID:
+ +

+

+ Dimensions +
Columns:
+ +

+

Rows:
+ +

+

+
+
Wrap Mode:
+ +

+

Read Only
+ +

+

Disabled
+ +

+

Tab Index:
+ +

+

Access Key:
+ +

+ +

Initial Text:
+ +
+ + +
+
+ + + \ No newline at end of file Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullPage/full-page.js URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullPage/full-page.js?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullPage/full-page.js (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullPage/full-page.js Sun Oct 8 12:53:13 2006 @@ -0,0 +1,209 @@ +// FullPage Plugin for HTMLArea-3.0 +// Implementation by Mihai Bazon. Sponsored by http://thycotic.com +// +// 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 + +
+
Mihai Bazon
+ + +Last modified on Sat Oct 25 01:06:59 2003 + + + + Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/full-screen.js URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/full-screen.js?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/full-screen.js (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/full-screen.js Sun Oct 8 12:53:13 2006 @@ -0,0 +1,203 @@ +function FullScreen(editor, args) +{ + this.editor = editor; + editor._superclean_on = false; + cfg = editor.config; + + cfg.registerButton + ( 'fullscreen', + this._lc("Maximize/Minimize Editor"), + [_editor_url + cfg.imgURL + 'ed_buttons_main.gif',8,0], true, + function(e, objname, obj) + { + e._fullScreen(); + if(e._isFullScreen) + { + obj.swapImage([_editor_url + cfg.imgURL + 'ed_buttons_main.gif',9,0]); + } + else + { + obj.swapImage([_editor_url + cfg.imgURL + 'ed_buttons_main.gif',8,0]); + } + } + ); + + // See if we can find 'popupeditor' and replace it with fullscreen + cfg.addToolbarElement("fullscreen", "popupeditor", 0); +} + +FullScreen._pluginInfo = +{ + name : "FullScreen", + version : "1.0", + developer: "James Sleeman", + developer_url: "http://www.gogo.co.nz/", + c_owner : "Gogo Internet Services", + license : "htmlArea", + sponsor : "Gogo Internet Services", + sponsor_url : "http://www.gogo.co.nz/" +}; + +FullScreen.prototype._lc = function(string) { + return HTMLArea._lc(string, 'FullScreen'); +}; + +/** fullScreen makes an editor take up the full window space (and resizes when the browser is resized) + * the principle is the same as the "popupwindow" functionality in the original htmlArea, except + * this one doesn't popup a window (it just uses to positioning hackery) so it's much more reliable + * and much faster to switch between + */ + +HTMLArea.prototype._fullScreen = function() +{ + var e = this; + function sizeItUp() + { + if(!e._isFullScreen || e._sizing) return false; + e._sizing = true; + // Width & Height of window + var x,y; + if (window.innerHeight) // all except Explorer + { + x = window.innerWidth; + y = window.innerHeight; + } + else if (document.documentElement && document.documentElement.clientHeight) + // Explorer 6 Strict Mode + { + x = document.documentElement.clientWidth; + y = document.documentElement.clientHeight; + } + else if (document.body) // other Explorers + { + x = document.body.clientWidth; + y = document.body.clientHeight; + } + + e.sizeEditor(x + 'px',y + 'px',true,true); + e._sizing = false; + } + + function sizeItDown() + { + if(e._isFullScreen || e._sizing) return false; + e._sizing = true; + e.initSize(); + e._sizing = false; + } + + /** It's not possible to reliably get scroll events, particularly when we are hiding the scrollbars + * so we just reset the scroll ever so often while in fullscreen mode + */ + function resetScroll() + { + if(e._isFullScreen) + { + window.scroll(0,0); + window.setTimeout(resetScroll,150); + } + } + + if(typeof this._isFullScreen == 'undefined') + { + this._isFullScreen = false; + if(e.target != e._iframe) + { + HTMLArea._addEvent(window, 'resize', sizeItUp); + } + } + + // Gecko has a bug where if you change position/display on a + // designMode iframe that designMode dies. + if(HTMLArea.is_gecko) + { + this.deactivateEditor(); + } + + if(this._isFullScreen) + { + // Unmaximize + this._htmlArea.style.position = ''; + try + { + if(HTMLArea.is_ie) + { + var bod = document.getElementsByTagName('html'); + } + else + { + var bod = document.getElementsByTagName('body'); + } + bod[0].style.overflow=''; + } + catch(e) + { + // Nutthin + } + this._isFullScreen = false; + sizeItDown(); + + // Restore all ancestor positions + var ancestor = this._htmlArea; + while((ancestor = ancestor.parentNode) && ancestor.style) + { + ancestor.style.position = ancestor._xinha_fullScreenOldPosition; + ancestor._xinha_fullScreenOldPosition = null; + } + + window.scroll(this._unScroll.x, this._unScroll.y); + } + else + { + + // Get the current Scroll Positions + this._unScroll = + { + x:(window.pageXOffset)?(window.pageXOffset):(document.documentElement)?document.documentElement.scrollLeft:document.body.scrollLeft, + y:(window.pageYOffset)?(window.pageYOffset):(document.documentElement)?document.documentElement.scrollTop:document.body.scrollTop + }; + + + // Make all ancestors position = static + var ancestor = this._htmlArea; + while((ancestor = ancestor.parentNode) && ancestor.style) + { + ancestor._xinha_fullScreenOldPosition = ancestor.style.position; + ancestor.style.position = 'static'; + } + + // Maximize + window.scroll(0,0); + this._htmlArea.style.position = 'absolute'; + this._htmlArea.style.zIndex = 999; + this._htmlArea.style.left = 0; + this._htmlArea.style.top = 0; + this._isFullScreen = true; + resetScroll(); + + try + { + if(HTMLArea.is_ie) + { + var bod = document.getElementsByTagName('html'); + } + else + { + var bod = document.getElementsByTagName('body'); + } + bod[0].style.overflow='hidden'; + } + catch(e) + { + // Nutthin + } + + sizeItUp(); + } + + if(HTMLArea.is_gecko) + { + this.activateEditor(); + } + this.focusEditor(); +}; \ No newline at end of file Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/de.js URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/de.js?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/de.js (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/de.js Sun Oct 8 12:53:13 2006 @@ -0,0 +1,6 @@ +// I18N constants +// LANG: "de", ENCODING: UTF-8 +// translated: Raimund Meyer xinha@ray-of-light.org +{ + "Maximize/Minimize Editor": "Editor maximieren/verkleinern" +}; Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/fr.js URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/fr.js?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/fr.js (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/fr.js Sun Oct 8 12:53:13 2006 @@ -0,0 +1,5 @@ +// I18N constants +// LANG: "fr", ENCODING: UTF-8 +{ + "Maximize/Minimize Editor": "Agrandir/Réduire l'éditeur" +}; \ No newline at end of file Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/nb.js URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/nb.js?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/nb.js (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/nb.js Sun Oct 8 12:53:13 2006 @@ -0,0 +1,6 @@ +// I18N constants +// LANG: "nb", ENCODING: UTF-8 +// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com +{ + "Maximize/Minimize Editor": "Maksimer/Minimer WYSIWYG vindu" +}; \ No newline at end of file Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/no.js URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/no.js?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/no.js (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/no.js Sun Oct 8 12:53:13 2006 @@ -0,0 +1,6 @@ +// I18N constants +// LANG: "no", ENCODING: UTF-8 +// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com +{ + "Maximize/Minimize Editor": "Maksimer/Minimer WYSIWYG vindu" +}; \ No newline at end of file Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/pl.js URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/pl.js?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/pl.js (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/pl.js Sun Oct 8 12:53:13 2006 @@ -0,0 +1,6 @@ +// I18N constants +// LANG: "pl", ENCODING: UTF-8 +// translated: Krzysztof Kotowicz, koto1sa@o2.pl, http://www.eskot.krakow.pl/portfolio +{ + "Maximize/Minimize Editor": "Maksymalizuj/minimalizuj edytor" +}; Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/ru.js URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/ru.js?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/ru.js (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/ru.js Sun Oct 8 12:53:13 2006 @@ -0,0 +1,6 @@ +// I18N constants +// LANG: "ru", ENCODING: UTF-8 +// Author: Andrei Blagorazumov, a@fnr.ru +{ + "Maximize/Minimize Editor": "Развернуть/Свернуть редактор" +}; \ No newline at end of file Added: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/sv.js URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/sv.js?view=auto&rev=454197 ============================================================================== --- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/sv.js (added) +++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/sv.js Sun Oct 8 12:53:13 2006 @@ -0,0 +1,6 @@ +// I18N constants +// LANG: "sv" (Swedish), ENCODING: UTF-8 +// translated: Erik Dalén, +{ + "Maximize/Minimize Editor": "Maximera/Minimera WYSIWYG fönster" +}; Propchange: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/plugins/FullScreen/lang/sv.js ------------------------------------------------------------------------------ svn:executable = *