angular-editor icon indicating copy to clipboard operation
angular-editor copied to clipboard

Can not change font with angular 10

Open imawesome007 opened this issue 4 years ago • 2 comments

I am using 1.1.3 version of editor with angular 10 version but it does not seem to change the font from the given dropdown ,it gets stuck. Specially on the HOSTED site Please resolve it ASAP

imawesome007 avatar Oct 12 '20 09:10 imawesome007

I have the same problem. Any update?

xdrago1 avatar Mar 30 '21 17:03 xdrago1

In my case the problem was with zone.js patch and angular-material module usage. I don't remember why, but I added

import 'zone.js/dist/zone-patch-rxjs';

to polyfills.ts

This appeared to be causing the issue in combination with the mat-button directive used in any of the elements on the page.

Just to be clear here are the steps to reproduce the issue in the angular-editor-app application:

  1. Modify polyfills.ts file by adding this line:
import 'zone.js/dist/zone-patch-rxjs';
  1. Run ng add @angular/material
  2. Modify app.component.html file by mat-button directive to an a element like this:
<p><a mat-button href="https://github.com/kolkov/angular-editor">Get it here</a></p>
  1. Add the corresponding reference to the MatButtonModule to app.module.ts file.

dgrozenok avatar Aug 16 '21 17:08 dgrozenok