<%@ Page Language="VB" AutoEventWireup="false" %>  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>  
<!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">   
<head id="Head1" runat="server">   
    <title></title>   
</head>  
<body>  
    <form id="form1" runat="server">
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
 <script type="text/javascript" language="javascript">
     function fnEditImg() {
         var editor = $find("<%=RadEditor1.ClientID %>");
         var jDocument = editor.get_document();
         var jImgElements = jDocument.getElementsByTagName("img");
         alert(jImgElements.length);
     }   
</script>  
</telerik:RadCodeBlock>   
   <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">   
    </telerik:RadScriptManager>  
        <input id="ButtonSave" type="button" value="Save" onclick="fnEditImg();" runat="server" />  
        <telerik:RadEditor ID="RadEditor1" EnableResize="false"  
        runat="server">   
            <Content>  
            </Content>  
        </telerik:RadEditor>  
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">   
        <AjaxSettings>  
            <telerik:AjaxSetting AjaxControlID="RadEditor1">   
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RadEditor1" />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
        </AjaxSettings>  
    </telerik:RadAjaxManager>  
    </form>  
</body>  
</html>  
