Problem when setting html
function transferData(iframe) {
// Get the editor instance that we want to interact with.
var oEditor = FCKeditorAPI.GetInstance('myeditor') ;
try {
// Set the editor contents (replace the actual one).
oEditor.SetHTML(iframe.contentWindow.document.documentElement.innerHTML);
//oEditor.EditorDocument.body.innerHTML = iframe.contentWindow.document.documentElement.innerHTML;
} catch(e) {
alert(e);
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/tr/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<style type="text/css">
/* Style Definitions */
p, li, div
{margin:0;
margin-bottom:.0001pt;
font-size:12.0pt;
text-align:justify;
font-family:Arial,sans-serif;}
</style>
</head>
<body lang="ES">
<div class="Section1">
...
<p>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<style type="text/css">
/* Style Definitions */
p, li, div
{margin:0;
margin-bottom:.0001pt;
font-size:12.0pt;
text-align:justify;
font-family:Arial,sans-serif;}
</style>
</p>
Re: Problem when setting html