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

Adding a class to an image?

1 Answer 182 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Clint
Top achievements
Rank 1
Clint asked on 07 Apr 2020, 02:15 PM

Is there any way to add a class to an image other than obviously editing it directly in html?  I hoped it was as easy as adding an entry into formatting options, but that doesn't work...

 

tools: [
  {
    name: "formatting", width: 150, items: [
      { text: "Image-Left", value: ".all-left", context: "img" },
    ]
  }
]

No other way?

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 09 Apr 2020, 09:37 AM

Hello Clint,

Unfortunately the Editor does not provide advanced control over the HTML for the inserted images out-of-the-box. There is an existing feature request which would provide you the desired functionality. I suggest to cast your vote for it and follow the item's status.

I am sorry I cannot be more helpful here.

Feel free to ask if you have any further questions.

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Editor
Asked by
Clint
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or