This is a migrated thread and some comments may be shown as answers.

Search string / word into radeditor

1 Answer 37 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 24 Feb 2011, 02:59 PM
Hello I want to search the string / word into rad editor if find then replace that word.

Actually I have on list box view. if I select that list item, then that item search / find the rad editor , if found the replace that word with selected Item

Hello How to search any word into rad  editor.. and replace it ...............

need URGENT.............


Thanks
Regards
Rahul

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Mar 2011, 10:44 AM
Hello Rahul,

You can use the editor.get_html() method to obtain the content of RadEditor as a string. After that using a regular expression and the JavaScript replace method to search for the selected in the list box string in the string returned by the get_html() method and if there is such a string to replace it using the replace method with the desired one.

Best wishes,
Rumen
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Editor
Asked by
Rahul
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or