Skip to content

Commit 524bbd7

Browse files
Merge pull request #16357 from renanvieiraa/issue-16114
Fixed #16114 - Editor | hide primeng toolbar when insert quill modules.
2 parents c8ceffa + 27dca93 commit 524bbd7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/app/components/editor/editor.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const EDITOR_VALUE_ACCESSOR: any = {
4141
<ng-content select="p-header"></ng-content>
4242
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
4343
</div>
44-
<div class="p-editor-toolbar" *ngIf="!toolbar && !headerTemplate">
44+
<div class="p-editor-toolbar" *ngIf="!modules && !toolbar && !headerTemplate">
4545
<span class="ql-formats">
4646
<select class="ql-header">
4747
<option value="1">Heading</option>
@@ -194,7 +194,10 @@ export class Editor implements AfterContentInit, ControlValueAccessor {
194194

195195
private quillElements!: { editorElement: HTMLElement; toolbarElement: HTMLElement };
196196

197-
constructor(public el: ElementRef, @Inject(PLATFORM_ID) private platformId: object) {
197+
constructor(
198+
public el: ElementRef,
199+
@Inject(PLATFORM_ID) private platformId: object
200+
) {
198201
/**
199202
* Read or write the DOM once, when initializing non-Angular (Quill) library.
200203
*/

0 commit comments

Comments
 (0)