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

Radeditor custom selectable element. Question

1 Answer 24 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Motiejus
Top achievements
Rank 1
Motiejus asked on 18 Mar 2016, 12:47 PM

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">

[myCustomComponent]123456789[/myCustomComponent]

</div>

- 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?

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 23 Mar 2016, 06:14 AM
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. 

Regards,
Ianko
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Editor
Asked by
Motiejus
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or