V
VV
I have problem editing iframe in modal dialog. When executing test2.htm
everything works fine, but when I open the same test2 in dialog editing is
disabled?! Any suggestions?
Example:
Test1.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<a href="" onclick="window.showModalDialog('test2.htm', window,
'');">Click</a>
</body>
</html>
Test2.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<iframe name="iFra" id="iFra" height="100%" width="100%"
frameborder="1"></iframe>
<script language="javascript">
iFra.document.designMode = 'On';
iFra.document.contentEditable = 'True';
</script>
</body>
</html>
everything works fine, but when I open the same test2 in dialog editing is
disabled?! Any suggestions?
Example:
Test1.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<a href="" onclick="window.showModalDialog('test2.htm', window,
'');">Click</a>
</body>
</html>
Test2.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<iframe name="iFra" id="iFra" height="100%" width="100%"
frameborder="1"></iframe>
<script language="javascript">
iFra.document.designMode = 'On';
iFra.document.contentEditable = 'True';
</script>
</body>
</html>