Skip to content

feat(forRoot): default configuration #568

@rbalet

Description

@rbalet

Description

Being able to pass default configuration to the forRoot() method.

Example

FroalaEditorModule.forRoot({
  key: FROALA_KEY,
  toolbarButtons: [TOOLBAR_BUTTONS],
})

Why ?

This would reduce the number of time we have to pass those values inside the html template.
It would also make it easier to adapt it in the future, while reducing the amount of global variable needed to achieve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions