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

Image Browser. Add custom class to the inserted image

1 Answer 43 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Taras
Top achievements
Rank 2
Taras asked on 30 Mar 2017, 01:13 PM

When user select an image from the image browser, it inserts to the Editor as next:

<img alt="" src="/Learn/ImageBrowser/Image?path=Chrysanthemum_636263051836972436.jpg" />

While adding the image we also can set Alt text, Width, Height.

But how to add class to <img> tag? 

Result has to be like: <img class="img-responsive" alt="" src="/Learn/ImageBrowser/Image?path=Chrysanthemum_636263051836972436.jpg" />

 

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 31 Mar 2017, 01:17 PM

Hello Taras,

Currently, the ImageBrowser and FileBrowser widgets lack a functionality to have a more advanced control over the DOM elements inserted in the Editor. 

The topic is discussed in the Kendo Feedback portal and I encourage you to cast your vote for this idea and eventually post any additional feedback or suggestions that you have.

Regards,
Ianko
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
Taras
Top achievements
Rank 2
Answers by
Ianko
Telerik team
Share this question
or