div.e-de-ctnr-toolbar > div.e-de-tlbr-wrapper > div > div > div:nth-child(2){
display: none;
}
div.e-de-ctnr-toolbar > div.e-de-tlbr-wrapper > div > div > div:nth-child(1){
display: none;
}
|
To enable disable items in toolbar, please refer below code snippets.
containerInstance.toolbar.enableItems(0, false); // disables first item in the toolbar.
For adding/removing/show/hide, please refer below code snippets
<ejs-documenteditorcontainer #documenteditor_default [enableToolbar]=true [locale]="culture" [toolbarItems]=items (toolbarClick)="onToolbarClick($event)" style="display:block;height:600px"></ejs-documenteditorcontainer>
Script
public items = [
"Open",
"New",
{
prefixIcon: "e-de-ctnr-pagenumber",
tooltipText: "Custom toolbar item",
text: "Custom toolbar item",
id: "Custom",
cssClass: "e-de-toolbar-btn"
},
"Separator",
"Image",
"Break",
"Bookmark",
"Separator",
"Hyperlink",
"RestrictEditing"
];
onToolbarClick(args): void {
if (args.item.id == "Custom") {
//Disable image toolbar item.
container.toolbar.enableItems(4, false);
}
}
|