Update of /cvsroot/php-blog/serendipity/htmlarea/plugins/TableOperations
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12393/htmlarea/plugins/TableOperations
Modified Files:
table-operations.js
Log Message:
* Upgraded htmlarea WYSIWYG editor to latest version. Entering links now properly works, as finally does Copy+Paste from Mozilla! (garvinhicking)
Index: table-operations.js
===================================================================
RCS file: /cvsroot/php-blog/serendipity/htmlarea/plugins/TableOperations/table-operations.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- table-operations.js 23 Mar 2004 15:41:09 -0000 1.1
+++ table-operations.js 11 Jan 2005 15:00:58 -0000 1.2
@@ -24,7 +24,7 @@
// register the toolbar buttons provided by this plugin
var toolbar = ["linebreak"];
- for (var i in bl) {
+ for (var i = 0; i < bl.length; ++i) {
var btn = bl[i];
if (!btn) {
toolbar.push("separator");
@@ -65,7 +65,7 @@
var ancestors = editor.getAllAncestors();
var ret = null;
tagName = ("" + tagName).toLowerCase();
- for (var i in ancestors) {
+ for (var i = 0; i < ancestors.length; ++i) {
var el = ancestors[i];
if (el.tagName.toLowerCase() == tagName) {
ret = el;
@@ -868,7 +868,7 @@
td.appendChild(select);
select.name = "f_st_float";
options = ["None", "Left", "Right"];
- for (i in options) {
+ for (var i = 0; i < options.length; ++i) {
var Val = options[i];
var val = options[i].toLowerCase();
option = doc.createElement("option");
@@ -923,7 +923,7 @@
input.size = "1";
input.style.fontFamily = "monospace";
td.appendChild(input);
- for (i in options) {
+ for (var i = 0; i < options.length; ++i) {
var Val = options[i];
var val = Val.toLowerCase();
option = doc.createElement("option");
@@ -978,7 +978,7 @@
select.style.marginLeft = "0.5em";
td.appendChild(select);
options = ["Top", "Middle", "Bottom", "Baseline"];
- for (i in options) {
+ for (var i = 0; i < options.length; ++i) {
var Val = options[i];
var val = Val.toLowerCase();
option = doc.createElement("option");
@@ -1070,7 +1070,7 @@
// That is, "top right bottom left" -- we only consider the first
// value.
(currentBorderStyle.match(/([^\s]*)\s/)) && (currentBorderStyle = RegExp.$1);
- for (i in options) {
+ for (var i in options) {
var val = options[i];
option = doc.createElement("option");
option.value = val;
@@ -1080,7 +1080,7 @@
}
select.style.marginRight = "0.5em";
function setBorderFieldsStatus(value) {
- for (i in borderFields) {
+ for (var i = 0; i < borderFields.length; ++i) {
var el = borderFields[i];
el.style.visibility = value ? "hidden" : "visible";
if (!value && (el.tagName.toLowerCase() == "input")) {
|