Hi,
I have used RadEditor in my project and created a demo page using the following HTML and toolkit.xml
Error is "Uncaught TypeError: Cannot read property 'length' of undefined "
HTML is :
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
<%@ 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 runat="server">
<title></title>
<script language="javascript" type="text/javascript">
function OnClientShow(editor, args) {
//alert(editor.get_id());
editor.onParentNodeChanged();
var style = editor.get_contentArea().style;
style.backgroundImage = "none";
style.backgroundColor = "white";
style.minHeight = "100px";
//style.min-height = "200px";
}
function loadGallery(s) {
alert(s);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
</Scripts>
</telerik:RadScriptManager>
<div>
<%-- AutoResizeHeight="True"
EditModes="Design, Html" ContentAreaMode="Div" ContentFilters="None" ToolsFile="~/toolfile.xml" Runat="server"
min-height="200px" OnClientLoad="OnClientShow" Height="100%" Width="99%" --%>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<telerik:RadEditor ID="RadEditor1" AutoResizeHeight="True"
EditModes="Design, Html" ContentAreaMode="Div" ContentFilters="None" ToolsFile="~/toolfile.xml" Runat="server"
min-height="200px" OnClientLoad="OnClientShow" Height="100%" Width="99%">
</telerik:RadEditor>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
When i click on button then it will show an error on in javascript and "Font-size" and "Font-name" goes disable .
Please reply . I am waiting for answer.
I have used RadEditor in my project and created a demo page using the following HTML and toolkit.xml
Error is "Uncaught TypeError: Cannot read property 'length' of undefined "
HTML is :
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
<%@ 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 runat="server">
<title></title>
<script language="javascript" type="text/javascript">
function OnClientShow(editor, args) {
//alert(editor.get_id());
editor.onParentNodeChanged();
var style = editor.get_contentArea().style;
style.backgroundImage = "none";
style.backgroundColor = "white";
style.minHeight = "100px";
//style.min-height = "200px";
}
function loadGallery(s) {
alert(s);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
</Scripts>
</telerik:RadScriptManager>
<div>
<%-- AutoResizeHeight="True"
EditModes="Design, Html" ContentAreaMode="Div" ContentFilters="None" ToolsFile="~/toolfile.xml" Runat="server"
min-height="200px" OnClientLoad="OnClientShow" Height="100%" Width="99%" --%>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<telerik:RadEditor ID="RadEditor1" AutoResizeHeight="True"
EditModes="Design, Html" ContentAreaMode="Div" ContentFilters="None" ToolsFile="~/toolfile.xml" Runat="server"
min-height="200px" OnClientLoad="OnClientShow" Height="100%" Width="99%">
</telerik:RadEditor>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
When i click on button then it will show an error on in javascript and "Font-size" and "Font-name" goes disable .
Please reply . I am waiting for answer.