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

ApplyClass to P element instead of adding extra SPAN?

1 Answer 24 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Marja
Top achievements
Rank 1
Marja asked on 05 May 2014, 11:46 AM
I can apply a CSS class to a paragraph by using the ApplyClass tool, which will add a <span class="className"> inside the paragraph. But I would prefer the selected class being applied to the selected P element directly instead of adding an extra SPAN.

Can that be achieved?

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 07 May 2014, 02:44 PM
Hello Marja,

The mentioned functionality of the  Apply Class tool is designed this way to preserve teh ability to change the class name of a selection and not to parent element.

I can recommend implementing a Custom Dropdown tool that fits your requirements.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Editor
Asked by
Marja
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or