I want to find out how we can get html control if any which are placed inside RadEditor and replace that value. I have try this way to change the Image source.
<script type="text/javascript">
function getEditor()
{
editor = $find("<%=reFormEditor.ClientID%>"); //return a reference to RadEditor
var image = editor.get_document().body.document.getElementById("Image1");
}
Here is my aspx:
<telerik:RadEditor runat="server" ID="reFormEditor">
<Content>
<asp:Button ID="btnSubmit2" runat="server" Text="Submit"/>
<img id="Image1" src="../Images/tabSelected.jpg" />
</Content>
</telerik:RadEditor>
I want to change the Image source when textbox keydown. Help me how to resolve this issue.
Here is the code, and you can’t put button inside contents it must be outside of editor contents :
And here is an example with text change