Closed wohugb closed 7 years ago
I'm getting the same thing, albeit without the crazy huge stack trace...
Error: Uncaught (in promise): TypeError: Cannot read property 'length' of null TypeError: Cannot read property 'length' of null at o.setContent (tinymce.min.js:13) at TinymceComponent.webpackJsonp.1363.TinymceComponent.writeValue (angular2-tinymce.component.js:91) at setUpControl (shared.js:38) at ng_form.js:117 at ZoneDelegate.webpackJsonp.1323.ZoneDelegate.invoke (zone.js:334) at Object.onInvoke (ng_zone.js:273) at ZoneDelegate.webpackJsonp.1323.ZoneDelegate.invoke (zone.js:333) at Zone.webpackJsonp.1323.Zone.run (zone.js:126) at zone.js:713 at ZoneDelegate.webpackJsonp.1323.ZoneDelegate.invokeTask (zone.js:367) at Object.onInvokeTask (ng_zone.js:264) at ZoneDelegate.webpackJsonp.1323.ZoneDelegate.invokeTask (zone.js:366) at Zone.webpackJsonp.1323.Zone.runTask (zone.js:166) at drainMicroTaskQueue (zone.js:546) at HTMLButtonElement.ZoneTask.invoke (zone.js:424)
Here is the relevant bits from my template:
`
</div>
`
writeValue function in angular2-tinymce.component.js should check value for null.
Any takers? Bumping into this as well 😓
Same for me !
I have the editor displaying just fine. But when using [(ngModel)] to try to link its data to my model field, I get the same message as described here. If I try using formControl, I always end up with a "no provider" error...
But I'd rather like the ngModel way to do things !
Should be working now
It works now perfectly for me !
Many thanks for your work man !