froala / angular-froala-wysiwyg

Angular 4, 5, 6, 7, 8 and 9 plugin for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
732 stars 200 forks source link

Color Popup not working with Angular 8 v3 #365

Open dorg-ayushi opened 4 years ago

dorg-ayushi commented 4 years ago

zone-evergreen.js:172 Uncaught TypeError: Cannot read property 'showColorsPopup' of undefined at E.Bootstrap.callback (colors.min.js:7) at Object.n [as exec] (froala_editor.min.js:7) at i (froala_editor.min.js:7) at r (froala_editor.min.js:7) at t (froala_editor.min.js:7) at E.Bootstrap.c (froala_editor.min.js:7) at o (froala_editor.min.js:7) at HTMLButtonElement. (froala_editor.min.js:7) at HTMLDivElement. (froala_editor.min.js:7) at ZoneDelegate.invokeTask (zone-evergreen.js:391)

angular-froala-wysiwyg": "^3.0.6", @angular/cli 8.3.19 typescript 3.5.3

running into above issue when try to open the color popup

shnigi commented 4 years ago

UPDATE: actually solved this by adding in the configuration pluginsEnabled: ['colors'] Now it is working properly.

Getting the same error with React "react": "^16.12.0" "typescript": "^3.7.5" "react-froala-wysiwyg": "^3.1.0",

Uncaught TypeError: Cannot read property 'showColorsPopup' of undefined at E.Bootstrap.callback (colors.min.js:7) at Object.n [as exec] (froala_editor.min.js:7) at i (froala_editor.min.js:7) at r (froala_editor.min.js:7) at t (froala_editor.min.js:7) at E.Bootstrap.c (froala_editor.min.js:7) at o (froala_editor.min.js:7) at HTMLButtonElement. (froala_editor.min.js:7) at HTMLDivElement. (froala_editor.min.js:7)