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

adding additional ol command

1 Answer 50 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 27 Jul 2016, 07:05 AM

Hi. i would like to know how do i create a custom button for a dash bullet point

i added the following to my tool file

<tool name="dash_bullet" Text="Dash Bullet Point" />

 

i am stuck at the JS portion

Telerik.Web.UI.Editor.CommandList["dash_bullet"] = function (commandName, editor, args) {
        // what to type here?
    };

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 01 Aug 2016, 08:03 AM

Hello Benjamin,

 

Basically:

  1. Fire the command (http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/client-side-programming/methods/fire) to create a bullet list (InsertUnorderedList);
  2. Get the selected element;
  3. Find the element you need to modify and apply the needed DOM operation to it.

 

Regards,
Ianko
Telerik by Progress
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
Benjamin
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or