-
Notifications
You must be signed in to change notification settings - Fork 371
Cannot read property 'body' of undefined exception since TinyMCE 4.3.13 - works with TinyMCE 4.3.12 #264
Comments
I am also getting this error, had to revert back to 4.3.12. |
Had the same issue today with tinymce In my case this error appears when I set the options attribute like so: |
Got the same error on v4.3.13 but work fine in v4.3.12 |
Mee too! With the version 4.3.12 Work fine |
Got same error on latest version. |
Sorry for the delay, I will look at this later today and see if we can fix it. |
@deeg while trying to figure out the reasons of the crash I got that Editior.init call happens later than toggleDisable by timer. And after toggleDisable call in getWin I have empty self.iframeElement. And the crash happens here because of empty body
|
the same error here |
Any progress on this? |
+1 |
+1, still has problem on 4.3.13 |
+1 |
1 similar comment
+1 |
+1 |
Same issue for me, with latest release |
+1 Same issue occurs in tinymce V4.4. |
+1 |
2 similar comments
+1 |
+1 |
I made a plnkr showing the issue: And one showing it fixed: The tests fail because of the line which resets the variable |
@moritzpflaum Thank you, just what I needed to fix the error. |
@moritzpflaum Thanks a lot, working for me too ;) |
I didn't quite get it. It does not only happen in a test env. What exactly is the change to fix this? |
In my case It was solved, in Angular2, using setTimeout. |
@guilherme6191 This is not a problem by itself, but the unit tests continue to append directives with the same '0' value id to the same DOM. The issue mentioned in #264 is fixed by using the new tinymce-init-promise when available. I hope this makes sense. |
For me it happened in development mode when running an angularjs app with Op vr 22 jul. 2016 20:04 schreef moritzpflaum notifications@github.com:
|
I had the same problem, solved it by commenting line 142: |
I appears to me that @moritzpflaum, may have a fix. Are we waiting for a PR from him? I downgraded to TinyMCE 4.3.12 in the meantime. |
@CyborgMaster I made a PR and it's passing CI. |
@moritzpflaum The files in the two plnkr's you posted have the same exact code. What's the difference? I took @KRaymundus' advice and commented out line 142 to fix it. Thanks everyone! |
Did the solution explained here and fixed it: |
I reverted back to 4.3.12 via |
Ah |
Commenting out the toggleDisable line isn't a good solution. I submitted a PR for a more robust fix that waits for TinyMCE to start up. |
Any progress? |
Yes. It works reliably for me, and I submitted a PR. There is a failing On Sep 13, 2016 9:20 AM, "asaarnak" notifications@github.com wrote:
|
When doing a bower update, you now get TinyMCE 4.3.13 rather than 4.3.12 (since a couple of hours). This causes the exception "Cannot read property 'body' of undefined" for me.
As a workaround, I've installed 4.3.12 via my own bower.json again. That solved the problem for now. You may want to look into why 4.3.13 doesn't work with ui-tinymce - perhaps report issues to tinyMCE directly if you find something.
The text was updated successfully, but these errors were encountered: