Comments (4)
I don't know whether this is related, but the behavior is the same: -
core.js:1440 ERROR TypeError: Cannot read property 'fire' of undefined
at e.o.immedateCheckActiveButtons (jodit.min.js:10)
at eval (jodit.min.js:10)
at ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:4724)
at ZoneDelegate.invokeTask (zone.js:420)
at Zone.runTask (zone.js:188)
at ZoneTask.invokeTask (zone.js:495)
at ZoneTask.invoke (zone.js:484)
at timer (zone.js:2065)
Navigating away from the editor with a routerLink.
It seems to be at this line (sorry it's the minified version of jodit.min): -
1451: o.jodit.events.fire("updateToolbar"))
I don't know if this resolves it, but I read that setting an element id for the editor with an alpha prefix, may resolve it. I.E: <editor id="a123"/>
, but as jodit-angular wraps it, I can't set it directly.
from jodit-angular.
So while trying to figure out how to use setEditorValue and going through the source code, I see that you are using the code from xdan/jodit#9 (comment) I removed this wrapper, used the code mentioned directly, and noticed that this error is also in that code.
After doing a quick investigation it appears the the ngOnDestroy isnt working correctly as the component is already destroyed before the call to jodit.destruct() can be fired. This can be linked to the feature request ngBeforeDestroy here angular/angular#17404
Removing the ngOnDestroy will prevent the o.jodit.events undefined error from appearing, although a new method to run jodit.destruct() may be required.
from jodit-angular.
Hi, fixed. Thank you!
from jodit-angular.
I am also facing the same issue
ExecutiveSummaryComponent.html:13 ERROR TypeError: Cannot read property 'fire' of undefined
at t.setEditorValue (jodit.min.js:10)
at JoditAngularComponent.set [as value] (jodit-angular.js:92)
at JoditAngularComponent.webpackJsonp.82e334896ad5897e90c8.JoditAngularComponent.writeValue (jodit-angular.js:142)
at forms.js:2392
at forms.js:3973
at Array.forEach ()
at FormControl.webpackJsonp.93200bbb0ebc67b1d3cd.FormControl.setValue (forms.js:3973)
at ExecutiveSummaryComponent.webpackJsonp.82e334896ad5897e90c8.ExecutiveSummaryComponent.resetForm (executive-summary.component.ts:171)
at ExecutiveSummaryComponent.webpackJsonp.82e334896ad5897e90c8.ExecutiveSummaryComponent.toggleIsCollapsed (executive-summary.component.ts:177)
at Object.eval [as handleEvent] (ExecutiveSummaryComponent.html:13)
from jodit-angular.
Related Issues (20)
- Problem with Angular Universal
- Angular 13 support HOT 19
- Get editor upon component init HOT 1
- Unable to install [email protected] in Angular 9 HOT 1
- Jodit-Multi-Pro with Angular 13 HOT 6
- Support Angular 15? Issue with setDisabledState HOT 8
- Is RxJs dependency needed? HOT 1
- OEM license key for premium plugins
- Angular 16 support HOT 5
- Error in popup output HOT 1
- Angular 15 HOT 2
- change default target for all links
- Jodit custom bundle
- I would like to know if the "resizer" plugin is available in the free plan.
- Angular warns about CommonJS or AMD dependency
- Cannot change background-color of jodit-editor HOT 2
- How to init value? HOT 2
- I got an error 'has no selector, please add it!' when run 'ng build --prod' HOT 2
- Upgrade to Angular 12? HOT 5
- Module not found: Error: Can't resolve 'jodit' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jodit-angular.