Skip to content

toolbarHiddenButtons has no effect #544

@bureaug

Description

@bureaug

I am trying to reduce the number of buttons shown in the toolbar. I've tried it with V3.0.0-beta.0 as well as with V2.1.0 with no effect whatsoever.

Here is my config:

	public editorConfig: AngularEditorConfig = {
		editable: true,
		enableToolbar: false,
		showToolbar: true,
		defaultParagraphSeparator: '<p>',
		sanitize: true,
		fonts: [],
		toolbarHiddenButtons: [
			[
				'underline',
				'strikeThrough',
				'subscript',
				'superscript',
				'indent',
				'outdent',
				'insertUnorderedList',
				'insertOrderedList',
				'heading',
			],
			[
				'backgroundColor',
				'customClasses',
				'insertImage',
				'insertVideo',
				'toggleEditorMode'
			]
		]
	};

Here is the template

<angular-editor formControlName="body" [config]="editorConfig"></angular-editor>

I get no errors, no warning and alas full toolbar. Any ideas why this happens?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions