Open stiffold opened 6 years ago
Workaround:
add showXPathInStatusbar: false,
to the jodit config to prevent the offending method calcPathImd
from executing
I get error: Cannot read property 'toggle' of undefined.
JoditContainerComponent.html:3 ERROR TypeError: Cannot read property 'toggle' of undefined
at s (jodit.min.js:10)
at e.
When I write something in the editor and then remove it with ngIf statement:
TypeError: Cannot read property 'current' of undefined undefined TypeError: Cannot read property 'current' of undefined at t.calcPathImd (jodit.min.js:10) at jodit.min.js:10 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421) at Object.onInvokeTask (core.js:3815) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188) at push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask (zone.js:496) at ZoneTask.invoke (zone.js:485) at timer (zone.js:2054)
Steps to reproduce: 1) Place multiple editors like:
<jodit-editor [formControl]="control1" *ngIf="control1enabled"></jodit-editor> <jodit-editor [formControl]="control2" *ngIf="control2enabled"></jodit-editor> <jodit-editor [formControl]="control3" *ngIf="control3enabled"></jodit-editor>
2) Write something to editor with control2 3) Switch control2enabled tocontrol2enabled = false