Radeditor custom selectable element. Question

2 posts, 0 answers
  1. Motiejus
    Motiejus avatar
    1 posts
    Member since:
    Mar 2016

    Posted 18 Mar 2016 Link to this post

    Hi, I have issues with custom button / markup in RadEditor. Here's my scenario:


    - I have a custom button added through: Telerik.Web.UI.Editor.CommandList[rteButtonCommand] ...

    - Then I show some external dialog ( editor.showExternalDialog(...) ) which returns back some markup.

    - I inject that markup where the cursor was, ie. like:

    <div class="some-css-class">



    - Instead of having that custom tag, I would like to show some image instead indicating what kind of component it is and more importantly be able to select it like an image and be able to move it or bring back the dialog with selected values. 


    I read quite a lot of reference, but couldn't find anything related. 


    Can anybody help me with this?



  2. Ianko
    Ianko avatar
    1875 posts

    Posted 23 Mar 2016 Link to this post

    Hello Motiejus, 

    As this is related to a custom tool and custom logic there is no an ready-to-use logic for that. This needs to be further implemented. RadEditor handles HTML and there is no built-in facility that would enable you to somehow force such "tags" to be rendered as image.

    I suggest you finding a solution suitable for HTML syntax and extending the custom tool implemented so that fits your requirements. 

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top