how to select the code when swaping the mode in RadEditor

4 posts, 0 answers
  1. Jack
    Jack avatar
    7 posts
    Member since:
    Aug 2012

    Posted 28 Aug 2012 Link to this post

    Hi, guys,

    I selected some code in RadEditor's "Design" mode.
    Then,I changed the mode to "Html" for editing,but the part which I selected in "Design" mode was onblur.

    Can I keep the selected part in previous mode being selected after I swap the RadEditor's mode?


    Best Regards,
    Jack
  2. Rumen
    Admin
    Rumen avatar
    14323 posts

    Posted 28 Aug 2012 Link to this post

    Hello,

    Unfortunately, this user friendly feature could not be implemented in RadEditor, because the Html and Design modes are two different IFRAME elements (documents) and during the switch from Design to Html mode the selection is automatically lost.
    In addition, the content is parsed by the editor's content filters to make it valid XHTML. This process modifies the content and it is not possible to programmatically restore the selection.

    By the way, have you by any chance seen a DHTML web (not desktop based) editor that supports this feature?

    Best regards,
    Rumen
    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. Jack
    Jack avatar
    7 posts
    Member since:
    Aug 2012

    Posted 28 Aug 2012 Link to this post

    Hi ,Rumen

    Thanks alot for your answer.
    I really do not know if any other web editor could do what I say.
    Anyway,If this could be done,it would help me a lot in my CMS project.

    By the way,could RadEditor restore the selection in the same mode(no swaping)?


    Best regards,
    Jack
  4. Rumen
    Admin
    Rumen avatar
    14323 posts

    Posted 29 Aug 2012 Link to this post

    Hello,

    Check this article for information on the requested feature: http://www.telerik.com/help/aspnet-ajax/editor-getrange.html.

    Kind regards,
    Rumen
    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