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

Editor custom format

1 Answer 157 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 2
Dennis asked on 05 Apr 2013, 12:40 PM
Is there a way to add my own fromat tool item and customize it's behavior?
I want my custom item for example that wraps everything in a qutoation and gives the qutation a specific class
I couldn't find anything about this in the documentation, but i notice that the demo example has a modified format tool with the 'fieldset' item which is not part of the regular format tools.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 09 Apr 2013, 11:03 AM
Hello Dennis,

You could create a custom tool that formats the current selection which can be found with the selectedHtml and then replaces the selection with the insertHtml command as demonstrated in the demo.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Editor
Asked by
Dennis
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Share this question
or