Rainer Kugland wrote:
Mozilla 1.4 and todays 1.5 nightly:
document.designMode='on';
document.designMode='off';
alert(document.designMode);

Results that 'off' is shown but the doc is still in designmode. Can somebody please confirm or am I doing something totally wrong?

Thanks

RK

Well, when design mode is off you can type in text in the editor window, but calling a Midas function thru execCommand returns the error:

[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.execCommand]" nsresult: "0x80004005 (NS_ERROR_FAILURE)

Daniel




Reply via email to