Hi rizwanali,
Please try this code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Welcome to Quattro Html Editor</title>
<script language="javascript" type="text/javascript">
function GetData(dvData)
{
alert(document.getElementById(dvData).innerHTML);
var MyValue=document.getElementById(dvData).innerHTML;
document.getElementById('<%=qtroEditor1.ClientID%>').SetHTML(MyValue);
}
</script>
</head>
<body>
<form id="frmOct20" runat="server">
<CE:Editor ID="qtroEditor1" runat="server" Height="150" Width="300" ShowBottomBar="false"
ThemeType="Office2007" AutoConfigure="Minimal" EnableContextMenu="True">
</CE:Editor>
<input type="button" value="Edit 1" id="btnEdit" onclick="GetData('divData1')" />
<input type="button" value="Edit 2" id="Button1" onclick="GetData('divData2')" />
<input type="button" value="Edit 3" id="Button2" onclick="GetData('divData3')" />
<div id="divData1">
Block 1 <b>Data</b>
</div>
<div id="divData2">
Block 2 <b>Data</b>
</div>
<div id="divData3">
Block 3 <b>Data</b>
</div>
</form>
</body>
</html>
Regards,
Ken