Open AjeetRE opened 4 years ago
Unfortunately you have to upgrade to Angular 8 or more to get work this funcionality. toolbarHiddenButtons
is only for version 1.0.0
Unfortunately you have to upgrade to Angular 8 or more to get work this funcionality.
toolbarHiddenButtons
is only for version 1.0.0
Here is what i'm using to hide buttons. In your component style file:
/deep/ .angular-editor-toolbar-set {
.block-label {
display: none;
}
}
/deep/ .angular-editor-button[title='Subscript'],
/deep/ .angular-editor-button[title='Insert Link'],
/deep/ .angular-editor-button[title='Superscript'],
/deep/ .angular-editor-button[title='Text Color'],
/deep/ .angular-editor-button[title='Insert Image'],
/deep/ .angular-editor-button[title='Background Color'],
/deep/ .angular-editor-button[title='Custom Style'],
/deep/ .angular-editor-button[title='Insert Video'],
/deep/ .angular-editor-button[title='Horizontal Line'],
/deep/ .angular-editor-button[title='Clear Formatting'],
/deep/ .angular-editor-button[title='HTML Code'],
/deep/ .angular-editor-button[title='Font Name'],
/deep/ .angular-editor-button[title='Font Size'],
/deep/ #fontSizeSelector-,
/deep/ #fontSelector-,
/deep/ #heading-,
/deep/ #unlink-,
/deep/ #customClassSelector- {
display: none;
}
Please go and see this page
When I do this
It throws error
here is AngularEditorConfig interface
Is it necessary to use version 1.0.0 and above to get hiding buttons working? as I'm working on Angular 7.