I'm trying to streamline the configuration for the PrimeNG TextEditor in my Angular project. Instead of defining the config multiple times in various components, I want to centralize it in a file and access it from all necessary components. What would be the most efficient way to achieve this? Should I create a new component for this purpose? I know using components is an option, but I'm not certain if it's considered best practice. Can someone offer guidance on the best approach?
toolbarOptions: any = [
[{ 'header': [3, false] }],
['bold', 'italic', 'underline', 'strike'], // toggled buttons
['blockquote', 'code-block'],
[{ 'list': 'ordered' }, { 'list': 'bullet' }],
[{ 'indent': '-1' }, { 'indent': '+1' }],
[{ 'color': [] }, { 'background': [] }], // dropdown with defaults from theme
[{ 'align': [] }],
['clean'] // remove formatting button
];