Skip to content

Not able to change default values in configurations. #179

@saubhagya23

Description

@saubhagya23

We are using ngx-summernote editor in our angular project.
The current configuration we are using is:
summernoteConfig = { placeholder: 'Enter text here...', tabsize: 1, height: '509px', toolbar: [ ['para', ['style', 'ul', 'ol', 'paragraph']], ['style', ['bold', 'italic', 'underline']], ['fontsize', ['fontsize']], ['insert', ['table', 'picture', 'link', 'hr']], ['misc', ['undo', 'redo']] ], styleTags: ['p', 'blockquote', 'h1', 'h2', 'h3', 'h4'] };

We wanted to restrict the fontsize available in the font-size dropdown. We tried providing it as
['fontsize', ['8', '9', '10', '11', '12' , 14', '18', '24']],

But this did not work. The editor still shows all the fontsizes: (Please refer the picture below.)

image

Please suggest a way we can restrict the fontsizes available in the toolbar.

`

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