Skip to content

Commit

Permalink
Merge pull request #16357 from renanvieiraa/issue-16114
Browse files Browse the repository at this point in the history
Fixed #16114 - Editor | hide primeng toolbar when insert quill modules.
  • Loading branch information
mehmetcetin01140 authored Sep 10, 2024
2 parents c8ceffa + 27dca93 commit 524bbd7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/components/editor/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const EDITOR_VALUE_ACCESSOR: any = {
<ng-content select="p-header"></ng-content>
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
</div>
<div class="p-editor-toolbar" *ngIf="!toolbar && !headerTemplate">
<div class="p-editor-toolbar" *ngIf="!modules && !toolbar && !headerTemplate">
<span class="ql-formats">
<select class="ql-header">
<option value="1">Heading</option>
Expand Down Expand Up @@ -194,7 +194,10 @@ export class Editor implements AfterContentInit, ControlValueAccessor {

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

constructor(public el: ElementRef, @Inject(PLATFORM_ID) private platformId: object) {
constructor(
public el: ElementRef,
@Inject(PLATFORM_ID) private platformId: object
) {
/**
* Read or write the DOM once, when initializing non-Angular (Quill) library.
*/
Expand Down

0 comments on commit 524bbd7

Please sign in to comment.