'url' dialogs not supported in v5 (External file managers compatibility issue)
See original GitHub issueHi.
I’m trying the all new and shiny v5 but I’ve noticed there is some huge issue in terms of compatibility with integrations for file management that were using tinyMCE.activeEditor.windowManager.open
. Most of them (if not every one of them) was simply loading html file into iframe provided by tinyMCE popup. But now with the new UI Dialog that won’t work.
So what’s the proper solution to get the same result?
I found that the new UI Dialog has an Iframe
component so I thought that maybe that’s the one…but the truth is I have no idea what is the reason for this component to exists. You can’t set src
and applying anything at initialData
just add it as a text into body of created iframe. So the result gives similar experience to the HtmlPanel
(Yup, I can even insert html this way).
And even if I take the random ID
of the created iframe and force src
to take the URL I want I can’t do anything because of the enforced dimensions. So…what’s the point of this component? Am I missing something here?
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (4 by maintainers)
file_picker_callback: FileManager // tinymce option
//In FileManage
We’ve just released 5.0.4, which includes the ability to create URL dialogs again! A couple things to note however, is that we’ve moved the URL dialog functionality to it’s own API:
editor.windowManager.openUrl(spec)
and we’ve removed thefile
configuration setting as it’s been replaced byurl
. Please let us know if you have any further questions.Note: The docs aren’t yet available for the URL dialogs sorry, but should be live in ~2 weeks. The docs PR @TheSpyder mentioned above though contains the details for the new API.