Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to change default values in configurations. #179

Open
saubhagya23 opened this issue Apr 17, 2023 · 1 comment
Open

Not able to change default values in configurations. #179

saubhagya23 opened this issue Apr 17, 2023 · 1 comment

Comments

@saubhagya23
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant