Fixes to the IE9 bugs in the Wysiwyg editor

This commit is contained in:
Gustavo Cruz
2013-01-07 17:11:55 -04:00
parent ea1ff0543b
commit 2d93201803
9 changed files with 119 additions and 19 deletions

View File

@@ -1,14 +1,25 @@
var setVariablePickerJS = function(){
document.getElementById('_Var_Form_').addEventListener('dblclick', function(){
if (document.getElementById('_Var_Form_').addEventListener) // W3C DOM
document.getElementById('_Var_Form_').addEventListener('dblclick', function(){
if (this.getAttribute('displayOption')=='event'){
e.insertFormVar(this.value.substring(2), this.value.substring(2), 'dyn' );
} else {
insertFormVar(document.getElementById('selectedField').value, this.value);
}
});
/**
});
else if (document.getElementById('selectedField').attachEvent) { // IE DOM
var element = document.getElementById('_Var_Form_');
element.attachEvent("ondblclick", function(){
if (element.displayOption=='event'){
e.insertFormVar(element.value.substring(2), element.value.substring(2), 'dyn' );
} else {
insertFormVar(document.getElementById('selectedField').value, element.value);
}
});
}
/**
* Function getVariableList returns a list with all process variables
*
* @access public

View File

@@ -576,6 +576,7 @@ var dynaformEditor={
}
if ((response.error==0) && (this.htmlEditorLoaded))
{
alert("hi");
// window._editorHTML.doc.body.innerHTML=response.html;
// html_html2();
// html2_html();