2

I currently working on an Editor for an Angular 2 app and I'm having issues resizing it. In my code I alter the width property however it only reduces the body of the editor and not the toolbar, is there any way this can be altered as well?

<p-editor [(ngModel)]='text' [style]="{'height':'320px', 'width': '200px'}">

enter image description here

2 Answers 2

2

The PrimeNG editor wraps Quill. Documentation for the PrimeNG element.

The style attribute is only applied to the container. So the height in your example won't affect the toolbar.

The PrimeNG docs says that you can use the ui-editor-toolbar class to style the toolbar. You can probably use the Quill class ql-toolbar as well.

You can change the style of the toolbar with CSS. For example, change the padding of the toolbar from 8px to 2px. You can't just automatically change the height of the toolbar.

Sign up to request clarification or add additional context in comments.

Comments

0

just use

::ng-deep .texto .ql-toolbar
    width: 700px

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.