tinymce / tinymce-angular

Official TinyMCE Angular Component
MIT License
320 stars 92 forks source link

From 6 to 7 #310

Open netdjw opened 1 year ago

netdjw commented 1 year ago

What is the current behavior?

I did'nt changed my code, only upgrade version with npm i @tinymce/tinymce-angular@7.0.0 and then I get this error in console:

TypeError: Cannot read properties of null (reading 'init')
    at tinymce-tinymce-angular.mjs:427:27
    at _ZoneDelegate.invoke (zone.js:372:26)
    at Zone.run (zone.js:134:43)
    at NgZone.runOutsideAngular (core.mjs:26275:28)
    at EditorComponent.initialise [as next] (tinymce-tinymce-angular.mjs:426:25)
    at ConsumerObserver.next (Subscriber.js:91:33)
    at SafeSubscriber._next (Subscriber.js:60:26)
    at SafeSubscriber.next (Subscriber.js:31:18)
    at ReplaySubject._subscribe (ReplaySubject.js:31:24)
    at ReplaySubject._trySubscribe (Observable.js:37:25)

I checked the source file:

image

I can't provide demo.

What is the expected behavior?

No error message.

Which versions of TinyMCE/TinyMCE-Angular, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or TinyMCE-Angular?

I use this pacakges:

    "@angular/animations": "^14.1.0",
    "@angular/cdk": "^14.1.0",
    "@angular/common": "^14.1.0",
    "@angular/compiler": "^14.1.0",
    "@angular/core": "^14.1.0",
    "@angular/forms": "^14.1.0",
    "@angular/material": "^14.1.0",
    "@angular/platform-browser": "^14.1.0",
    "@angular/platform-browser-dynamic": "^14.1.0",
    "@angular/router": "^14.1.0",
    "@tinymce/tinymce-angular": "^7.0.0",
    "tinymce": "^6.1.2",
    "tinymce-i18n": "^22.5.2",
exalate-issue-sync[bot] commented 1 year ago

Ref: INT-2972