Fixes to the IE9 bugs in the Wysiwyg editor
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user