Hi,
by generating a template for the editor via javascript dom, a problem with radiobutton occurs:
Here is the important code-snippet:
inputControl = createNamedElement('input', 'rbA1');
inputControl.type = 'radio';
inputControl.id = 'rbA1';
inputControl.defaultChecked = 'checked'; // for IE
inputControl.checked = 'checked'; // for the others
inputControl.value = 'rb1';
function createNamedElement(type, name) {
var element = null;
var oDoc=editor.get_Document();
// Try the IE way; this fails on standards-compliant browsers
try {
element = oDoc.createElement('<'+type+' name="'+name+'">');
} catch (e) {
// Non-IE browser; use canonical method to create named element
element = oDoc.createElement(type);
element.name = name;
}
return element;
}
Now my problem:
In Design-Mode (IE and Firefox), this radiobutton looks "checked", but when switching to Html-Mode, only in IE the attribute "checked" is written.
Is this a bug in the editor?
Thanks for replying,
Andreas
by generating a template for the editor via javascript dom, a problem with radiobutton occurs:
Here is the important code-snippet:
inputControl = createNamedElement('input', 'rbA1');
inputControl.type = 'radio';
inputControl.id = 'rbA1';
inputControl.defaultChecked = 'checked'; // for IE
inputControl.checked = 'checked'; // for the others
inputControl.value = 'rb1';
function createNamedElement(type, name) {
var element = null;
var oDoc=editor.get_Document();
// Try the IE way; this fails on standards-compliant browsers
try {
element = oDoc.createElement('<'+type+' name="'+name+'">');
} catch (e) {
// Non-IE browser; use canonical method to create named element
element = oDoc.createElement(type);
element.name = name;
}
return element;
}
Now my problem:
In Design-Mode (IE and Firefox), this radiobutton looks "checked", but when switching to Html-Mode, only in IE the attribute "checked" is written.
Is this a bug in the editor?
Thanks for replying,
Andreas