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

Adding classes to the Lists command

2 Answers 88 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Trevor
Top achievements
Rank 1
Trevor asked on 13 Mar 2017, 06:33 PM

I would like to apply a class on the  <tool name="InsertUnorderedList" /> , <tool name="InsertOrderedList" />

 

Is there a way to subscribe to tool events to apply the classes when working with the tools.xml? We are using the Rad Editor for content blocks and would like to apply classes according on the ul and ol tags. 

 

If we are to use JS function where would the JS file be located to be available to subscribe to the events fired by Rad Editor

2 Answers, 1 is accepted

Sort by
0
Trevor
Top achievements
Rank 1
answered on 13 Mar 2017, 06:36 PM
This is in response to http://www.telerik.com/forums/overriding-insertunorderedlist
0
Rumen
Telerik team
answered on 14 Mar 2017, 09:06 AM

Hello Trevor,

If you use RadEditor in a standard ASPX/ASCX file, you can place the JavaScript function just above the RadEditor's declaration as shown in the documentation: http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/client-side-programming/events/onclientcommandexecuted

If you use RadEditor in Sitefinity, you can see an example how to attach an event and a JS function to it in this Sitefinity forum thread: http://www.sitefinity.com/developer-network/forums/general-discussions-/how-do-i-radeditor#Mw1uNLZI3EyEMi43C6f7jA.

Best regards,
Rumen
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
Trevor
Top achievements
Rank 1
Answers by
Trevor
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or