tempWorkingText = rte_TrimDefectCriteria.Value tempWorkingNumber = tempWorkingText.LastIndexOf("</", tempWorkingText.Length - 1) tempRTEContent = tempWorkingText.Insert(tempWorkingNumber, "½") rte_TrimDefectCriteria.Value = tempRTEContent
<script>
function Insert() {
var instance = $("#<%=TrimDefectCriteria.ClientID%>").data("ejRTE");
instance.pasteContent("½");
}
</script> |
<ej:RTE ID="TrimDefectCriteria" Width="850" Height="440" ShowFooter="true" runat="server">
<RTEContent>
<p><b>Description:</b></p>
<p>The Rich Text Editor (RTE) control is an easy to render in
client side. Customer easy to edit the contents and get the HTML content for
the displayed content. A rich text editor control provides users with a toolbar
that helps them to apply rich text formats to the text entered in the text
area. </p>
</RTEContent>
</ej:RTE>
<ej:Button ID="btn" Type="Button" Text="Insert" ClientSideOnClick="Insert" runat="server"></ej:Button>
<script>
function Insert() {
var instance = $("#<%=TrimDefectCriteria.ClientID%>").data("ejRTE");
instance.pasteContent("½");
}
</script> |