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

Find and Replace generates character entities in HTML mode

4 Answers 41 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Toldo
Top achievements
Rank 1
Toldo asked on 10 Jul 2012, 11:38 AM
Hello,
I faced an issue in Find and Replace functionality.
This can be reproduced on RadEditor demo
1. Switch to HTML mode.
2. Press 'Find And Replace' button. Select 'Replace' tab.
3. Specify
  Find: <td>
  Replace with: <th>
4. Press Replace button.

<td> is replaced with &lt;th&gt;

Few more issues with Find&Replace:
'Replace All' does not seem to work at all.
When "find" string is not found it replace all the text.

Could you please reply if it can be fixed?

4 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 11 Jul 2012, 11:30 PM
Hi Toldo,

In connection with your first question - by design the Find and Replace functionality is not supposed to be used in the HTML mode of RadEditor. It is additionally implemented in order users to find or/and replace strings in the code (excluding special symbols).

Actually, there is a way to avoid the special-symbol-escaping feature. You just have to modify the FindAndReplace dialog, changing the _replace function with the desired settings. For your convenience I have prepared a demo of this dialog, where the special symbols won't be replaced with their equivalents when working in HTML mode. You could see the detailed demo in here: Customize Built-in Dialogs.

Please, keep in mind that this is not a tested functionality so you could experience some unexpected errors.

About your second question: I tried to reproduce the problem with the whole text replacement but to no avail (see this video). Could you please provide more details on the specific scenario?
  • Which versions of RadControls and .NET Framework are used in your application?
  • Under which browser and its version the problem occurs?
  • Could you please provide a sample fully runnable project reproducing the problem so we can examine and debug it locally?

Greetings,
Veselina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Alexander Yaremenko
Top achievements
Rank 1
answered on 07 Sep 2012, 04:42 PM
Hello,

Our customers are also faced the same issue with replacing "<" and ">" chars in the Html mode. They want to replace come tags or symbols. Could you please consider this issue as a feature request?

0
Aren
Top achievements
Rank 1
answered on 07 Sep 2012, 04:51 PM
I am one of the Sitecore customers affected by this. We have some users that need to use search and replace to alter HTML tags. It would be nice if this feature could be improved to work correctly in HTML editing mode.
0
Vessy
Telerik team
answered on 11 Sep 2012, 02:59 PM
Hi,

I have already logged your feature request into our PITS and you can vote for its implementation. If many people request it we will do our best to implement it.

All the best,
Vesi
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Toldo
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Alexander Yaremenko
Top achievements
Rank 1
Aren
Top achievements
Rank 1
Share this question
or