Load multiple ngx-editor in the same page
I’m trying to show multiple NgxEditor
on the same page but only the last editor is loading correctly with textarea. The other editors doesn’t load the textarea. If I make changes in the menu of the other editors, it reflects in the last editor.
How can I make the toolbar options for ‘ngx-editor’ dynamically formatted in the variable or constant form in Angular?
import { Editor, Toolbar } from ‘ngx-editor’; toolbar: Toolbar = [[‘bold’, ‘italic’, ‘bullet_list’, ‘ordered_list’]]; I want to store the above toolbar values as constants or variables. Expected behaviour – Case 1: Make it as constants and use it. text-formatting.const.ts export const TEXT_FORMATTING_TYPE = { BOLD: ‘bold’, ITALIC: ‘italic’, BULLET_LIST: ‘bullet_list’, ORDERED_LIST: ‘ordered_list’ } abc.component.ts import […]