
Hi,
I don't need the items "Quotation", "Heading 5" and "Heading 6" in the "Format" dropdown list in the Editor's toolbar. How could I achieve that?
6 Answers, 1 is accepted
Hi Jean-Christophe,
The format dropdown content can be customized, passing the desired configurations:
public formatData: FormatItem[] = [
{ text: "Quotation", tag: "blockquote" },
{ text: "Heading 5", tag: "h5" },
{ text: "Heading 6", tag: "h6" }
];
the data built-in property:
<kendo-editor [value]="value" style="height: 450px;">
<kendo-toolbar>
<kendo-toolbar-dropdownlist
kendoEditorFormat
[data]="formatData"
></kendo-toolbar-dropdownlist>
</kendo-toolbar>
</kendo-editor>
Here is an example:
https://stackblitz.com/edit/angular-k55obp?file=app/app.component.ts
I hope this helps.
Regards,
Martin
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.


Hi,
I've another question: could I format the style of the dropdown list items? for example, changing the color of the "Heading 1" list item
Hi Jean-Christophe,
Using custom CSS code is a possible way to customize the selected color. Here is an example:
https://stackblitz.com/edit/angular-yei48q-zjdrdp?file=app/app.component.ts
Another way is to update the $accent SCSS variable color, but then the selected color will be changed in the whole application. Please check the following article:
Let me know if any further questions come up.
Regards,
Martin
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Hello Jean-Christophe,
Thank you for the provided screenshot.
Indeed there isn't a built-in mechanism that can be used to customize the Editor dropdown controls layout.
The desired styling can be achieved by using custom CSS code. Since the list of items is rendered in a popup that is generated in the DOM on the fly, we cannot distinguish the Format dropdown popup and Font family dropdown popup.
Unfortunately, if the Heading 1 is colored in blue, then the list item which is in the same position in the Font Family dropdown for example would be colored in blue as well as the used CSS specificity is applied to all rendered Editor control popups.
.k-popup .k-list-scroller .k-list li:nth-child(3) {
color: blue;
}
https://stackblitz.com/edit/angular-yei48q-ruk1tb
I hope this sheds some light.
Regards,
Martin
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.