lula / ngx-summernote

Summernote editor for Angular :sunglasses:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to change default values in configurations.

saubhagya23 opened this issue · comments

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.

`

Could someone please suggest a solution to the above mentioned issue.