question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

4.6.7 regression - windowManager.getParams(...).oninsert is not a function

See original GitHub issue

I was unable to reproduce this with TinyMCE Fiddle because I got another error. But the code should show what I was trying to do: http://fiddle.tinymce.com/1bgaab

I use the file_picker_callback with a call to tinymce.activeEditor.windowManager.open with an params object containing oninsert and then call the callback to insert the image.

https://www.tinymce.com/docs/api/tinymce/tinymce.windowmanager/#open

TypeError: top.tinymce.activeEditor.windowManager.getParams(...).oninsert is not a function

This worked fine in 4.6.6 (and earlier) but no longer works in 4.6.7.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
XardoniKcommented, Oct 3, 2017

They fixed this. Is working on 4.7.0.

0reactions
spockecommented, Oct 11, 2017

I’m closing this one since it’s fixed in 4.7.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TinyMCE: getParams() got removed from v6 - Stack Overflow
In my example, oninsert() is the custom method in openUrl(). I am not sure if we can use the custom property/methods in v6....
Read more >
tinymce.WindowManager
Returns the params of the last window open call. This can be used in iframe based dialog to get params passed from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found