Upgrade to xinha svn head to fix issues with xinha editors not appearing in Firefox 1.5
This commit is contained in:
@@ -26,7 +26,7 @@ function Forms(editor) {
|
||||
}
|
||||
// add a new line in the toolbar
|
||||
cfg.toolbar.push(toolbar);
|
||||
};
|
||||
}
|
||||
|
||||
Forms._pluginInfo = {
|
||||
name : "Forms",
|
||||
@@ -65,7 +65,7 @@ Forms.btnList = [
|
||||
|
||||
Forms.prototype._lc = function(string) {
|
||||
return HTMLArea._lc(string, 'Forms');
|
||||
}
|
||||
};
|
||||
|
||||
Forms.prototype.onGenerate = function() {
|
||||
var style_id = "Form-style"
|
||||
@@ -77,7 +77,7 @@ Forms.prototype.onGenerate = function() {
|
||||
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) {
|
||||
@@ -173,7 +173,7 @@ Forms.prototype.buttonPress = function(editor,button_id, node) {
|
||||
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":
|
||||
@@ -267,7 +267,7 @@ Forms.prototype.buttonPress = function(editor,button_id, node) {
|
||||
outparam.f_for = "";
|
||||
outparam.f_text = "";
|
||||
outparam.f_legend = "";
|
||||
};
|
||||
}
|
||||
editor._popupDialog("plugin://Forms/" + tagName + ".html", function(param) {
|
||||
if (param) {
|
||||
if(param["f_cols"])
|
||||
@@ -351,4 +351,4 @@ Forms.prototype.buttonPress = function(editor,button_id, node) {
|
||||
}
|
||||
}, outparam);
|
||||
}
|
||||
};
|
||||
};
|
||||
@@ -13,7 +13,7 @@ function Init() {
|
||||
var param = window.dialogArguments;
|
||||
document.getElementById("f_text").value = param["f_text"];
|
||||
document.getElementById("f_text").focus();
|
||||
};
|
||||
}
|
||||
|
||||
function onOK() {
|
||||
// pass data back to the calling window
|
||||
@@ -21,12 +21,12 @@ function onOK() {
|
||||
param["f_text"] = document.getElementById("f_text").value;
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
function onCancel() {
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
@@ -43,4 +43,4 @@ function onCancel() {
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
@@ -18,7 +18,7 @@ function Init() {
|
||||
document.getElementById(fields[i]).value = param[fields[i]];
|
||||
}
|
||||
document.getElementById("f_name").focus();
|
||||
};
|
||||
}
|
||||
|
||||
function onOK() {
|
||||
var required = {
|
||||
@@ -39,12 +39,12 @@ function onOK() {
|
||||
}
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
function onCancel() {
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@@ -87,4 +87,4 @@ function onCancel() {
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
@@ -72,7 +72,7 @@ function Init() {
|
||||
}
|
||||
window.resizeTo(320,height);
|
||||
document.getElementById("f_name").focus();
|
||||
};
|
||||
}
|
||||
|
||||
function onOK() {
|
||||
var el = document.getElementById("f_name");
|
||||
@@ -99,12 +99,12 @@ function onOK() {
|
||||
}
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
function onCancel() {
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
@@ -176,4 +176,4 @@ function onCancel() {
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
@@ -17,7 +17,7 @@ function Init() {
|
||||
document.getElementById(fields[i]).value = param[fields[i]];
|
||||
}
|
||||
document.getElementById("f_text").focus();
|
||||
};
|
||||
}
|
||||
|
||||
function onOK() {
|
||||
// pass data back to the calling window
|
||||
@@ -28,12 +28,12 @@ function onOK() {
|
||||
}
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
function onCancel() {
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
@@ -56,4 +56,4 @@ function onCancel() {
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
@@ -28,7 +28,7 @@ function Init() {
|
||||
document.getElementById("f_select").options[i] = new Option(param.f_options[i].text, param.f_options[i].value);
|
||||
}
|
||||
document.getElementById("f_name").focus();
|
||||
};
|
||||
}
|
||||
|
||||
function onOK() {
|
||||
var el = document.getElementById("f_name");
|
||||
@@ -64,12 +64,12 @@ function onOK() {
|
||||
param["f_options"] = optionNodes;
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
function onCancel() {
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
//functions to build select options list
|
||||
@@ -206,4 +206,4 @@ function swapOptions(obj,i,j) {
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
@@ -24,7 +24,7 @@ function Init() {
|
||||
}
|
||||
}
|
||||
document.getElementById("f_name").focus();
|
||||
};
|
||||
}
|
||||
|
||||
function onOK() {
|
||||
var el = document.getElementById("f_name");
|
||||
@@ -50,12 +50,12 @@ function onOK() {
|
||||
}
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
function onCancel() {
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@@ -110,4 +110,4 @@ function onCancel() {
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
Reference in New Issue
Block a user