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

Clear a single tool

2 Answers 46 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rod
Top achievements
Rank 1
Rod asked on 18 Mar 2013, 07:56 PM
.Clear() seems to clear all tools. Anyway to clear a single tool?

2 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 19 Mar 2013, 12:40 PM
Hi Rod,

A single tool cannot be hidden through the Editor configuration. You could either list the tools to be displayed:
E.g.

.Tools(t => t.Clear()
         .Bold()
         .Italic()
         .Underline()
         .BackColor()
         .FontColor())
OR
use CSS styles to hide the unnecessary tool via it's unique class.
E.g.
<style>
  .k-foreColor
  {
      display: none;
  }
</style>


 

Regards,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Rod
Top achievements
Rank 1
answered on 19 Mar 2013, 01:51 PM
Thanks Dimiter. I hadn't thought of the style trick.
Tags
Editor
Asked by
Rod
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Rod
Top achievements
Rank 1
Share this question
or