ngx-summernote icon indicating copy to clipboard operation
ngx-summernote copied to clipboard

Not able to change default values in configurations.

Open saubhagya23 opened this issue 2 years ago • 1 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.

`

saubhagya23 avatar Apr 17 '23 05:04 saubhagya23

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

saubhagya23 avatar May 16 '23 03:05 saubhagya23