Find and Replace generates character entities in HTML mode

5 posts, 0 answers
  1. Toldo
    Toldo avatar
    4 posts
    Member since:
    Jul 2012

    Posted 10 Jul 2012 Link to this post

    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?
  2. Vessy
    Admin
    Vessy avatar
    2213 posts

    Posted 11 Jul 2012 Link to this post

    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.
  3. Alexander Yaremenko
    Alexander Yaremenko avatar
    13 posts
    Member since:
    Sep 2012

    Posted 07 Sep 2012 Link to this post

    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?

  4. Aren
    Aren avatar
    7 posts
    Member since:
    Apr 2011

    Posted 07 Sep 2012 Link to this post

    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.
  5. Vessy
    Admin
    Vessy avatar
    2213 posts

    Posted 11 Sep 2012 Link to this post

    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.
Back to Top