Cannot set property 'id' of undefined
See original GitHub issueHi,
I have updated the editor from version 0.15.4 to 0.18.4. When I start now my application I get this stack:
TypeError: Cannot set property 'id' of undefined
at AngularEditorComponent.configure (kolkov-angular-editor.js:1069)
at AngularEditorComponent.ngAfterViewInit (kolkov-angular-editor.js:800)
at callProviderLifecycles (core.js:26694)
at callElementProvidersLifecycles (core.js:26659)
at callLifecycleHooksChildrenFirst (core.js:26641)
at checkAndUpdateView (core.js:37060)
at callViewAction (core.js:37416)
at execEmbeddedViewsAction (core.js:37373)
at checkAndUpdateView (core.js:37051)
at callViewAction (core.js:37416)
at execEmbeddedViewsAction (core.js:37373)
at checkAndUpdateView (core.js:37051)
at callViewAction (core.js:37416)
at execComponentViewsAction (core.js:37344)
at checkAndUpdateView (core.js:37057)
I have two editors on my side. They are configured like:
<angular-editor id="editor2" class="w-100 border0" [config]="editorConfig" [(ngModel)]="message.content"></angular-editor>
<angular-editor id="editor1" class="w-100 border0" [config]="editorConfig" [(ngModel)]="message.contentReply"></angular-editor>
Pls help.
best wishes, Lars
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Hi @kolkov I ran into the same problem when updating the angular-editor in my project.
I’ve been missing the new attribute
toolbarPosition: 'top'
from my editorConfig, i think it would be convenient to asume “top” as default?@zijianhuang this fixed in 1.0.0-beta.1 thanks! Try new build if you ar on Angular 8.x.x already.