Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

217
Views
¿Cómo se hace que un enlace de anclaje no se pueda hacer clic o se deshabilite en el editor de texto?

Necesita deshabilitar el hipervínculo también en el editor de texto. El campo ya está deshabilitado como [readonly]="true". Pero se puede hacer clic en el hipervínculo adjunto al editor p.

Código:

 <label for="notice">Notice<span class="mandatory">*</span></label> <p-editor [readonly]="isViewDisable" [attr.disabled]="(isViewDisable)" formControlName="noticeText" [(ngModel)]="noticeText" [style]="{'height':'320px'}" [ngClass]="{ 'is-invalid': submitted && p.noticeText.errors }" #editor appRequired> <ng-template pTemplate="header"> <span class="ql-formats"> <select class="ql-size"> <option value="small"></option> <option selected></option> <option value="large"></option> <option value="huge"></option> </select> <button class="ql-bold" aria-label="Bold"></button> <button class="ql-italic" aria-label="Italic"></button> <button class="ql-underline" aria-label="Underline"></button> <span class="ql-formats"> <button class="ql-list" value="ordered"></button> <button class="ql-list" value="bullet"></button> <select title="Text Alignment" class="ql-align" > <option selected>Gauche</option> <option value="center" label="Center"></option> <option value="right" label="Right"></option> <option value="justify" label="Justify"></option> </select> </span> <span class="ql-formats"> <button class="ql-link" aria-label="Link"></button> </span> </span> </ng-template> </p-editor> </div>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Necesita agregar una clase deshabilitada, eche un vistazo a continuación

 .disabled { pointer-events: none } <p-editor [ngClass]="{'disabled':isViewDisable}" [readonly]="isViewDisable" [attr.disabled]="(isViewDisable)" formControlName="noticeText" [(ngModel)]="noticeText" [style]="{'height':'320px'}" [ngClass]="{ 'is-invalid': submitted && p.noticeText.errors }" #editor appRequired> <ng-template pTemplate="header">
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!