I found out myself. I had to call
media_upload_header();
in the Iframe and trigger the following javascript:
var html="stuff I want to return to editor";
var win = window.dialogArguments || opener || parent || top;
win.send_to_editor(html);
I have no Idea how, but this works.
Related Posts:
- Disable text tab on WordPress text-editor
- Getting selected (highlighted) html from the Visual Editor on Edit Post page?
- How do I add multiple buttons to Tiny MCE in a single plugin?
- can’t use span or icon tags on when editing visual composer element
- How to add a shortcode button to the TinyMCE editor?
- wp.media.view.ImageDetails – Save settings as HTML5 data-* attributes for image
- How to load wp_editor via AJAX
- “Add Media” button in custom plugin
- How to Add WYSIWYG Editor (tinyMCE) to plugin options page compatible with WordPress 3.0 and up?
- Syntax highlighting for post/page editor [closed]
- WordPress 3.5 Media Manager – add a button
- Remote upload file to server B
- TinyMCE Advanced newline problem
- What plugin can I use to create a list / slideshow of featured images?
- Upload specific images to specific folder
- Any plugin out there that uses WP’s internal image uploader?
- How to disable Gutenberg editor?
- Resizing all images
- Is there a plugin to show the code tag button on the visual editor?
- Drag-and-drop “Panels”-style visual layout editor?
- How to make WordPress use protocol indepentent upload files?
- Hook for image edit popup
- Creating button next to “add media” that allows you to choose a single post
- Issues creating a tinyMCE plugin that creates a custom link
- How to create an edit media button for slideshow plugin?
- Using the media uploader in a custom plugin
- How to extend Media Library (WP 4.4)
- Increase Size Limit of Media Files WordPress 4.1
- Add visual editor to Media Edit Screen
- Adding rich text editor to my plugin
- Upload images from custom plugin using the media modal
- How to Add TinyMCE’s plugin in wordpress?
- White text on white background in TinyMCE when wp_editor is called in WP 3.9
- tinyMCE duplicates previous block element when pressing return (visual editor)
- Generated Images sizes do not match Media Settings Image Size
- How to add custom style to Gutenberg?
- How can I get the post content displayed in a text field that allows to edit posts?
- How to add custom JS to tinymce in wordpress
- how to load tinymce external plugin
- How do I create a full-bleed background image on text mouseover? [closed]
- Added custom styles to Visual Editor. Classes are appended and not replaced as intended
- How to import 55k images (uploaded via FTP) into WordPress Media libary? [closed]
- WordPress 3.5 Media Manager – add a button
- How can I serve a text file at a custom URL
- How to export a list of all media urls? [closed]
- Set WordPress TinyMCE Editor To Readonly
- Limiting allowed html elements/strip harmful scripts from editor
- Find unused images?
- add mediaelement.js plugins into WordPress video player control bar
- How to upload images to WP Panel keeping correct folder in FTP
- Uncode theme content block header ignoring saved changes/not updating?
- How do I create a custom add media button modal?
- Media upload not working on theme option in WordPress 3.8.1
- How organize uploaded media in WP?
- Media is not attached after import
- Plugin or method to delete uploads not in media library?
- Restrict media upload size by format
- WordPress: cleaning media library
- wp_generate_attachment_metadata is creating an empty array
- How to install/enable mediaelement.js plugins in WordPress
- Why is WPBakery Page Builder backend editor not clickable? [closed]
- How to edit content before post update
- How to replace wordpress default text editor (TinyMCE) with a custom one.
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- Auto move media file to cloud
- accessing wp.media api from a tinymce plugin
- Visual Composer shortcode for child theme dir
- How to load wp_editor via AJAX
- Change syntax styling of TinyMCE HTML Text Editor
- jquery tinymce and bundled wp plugins
- How to add wp visual editor in a custom widget?
- Trouble adding tiny mce to textarea in custom plugin
- Retrieving Meta from Image Attachment
- Using TinyMCE in plugin?
- media page returnig to 404 in rtmedia [closed]
- TinyMCE Styles Dropdown not adding html tags other than span
- Getting Theme element into plugins page editor in wp admin
- Hook into existing tinyMCE button
- Add custom text color WordPress 3.9 TinyMCE 4 Visual editor
- Fullscreen Video/GIF Intro
- Overriding post’s font-family
- How to change the post form from plugin?
- adding a button to the media uploader
- MediaElement.js works on one site but not the other?
- How to add table class for tables of TinyMCE advanced wordpress plugin? [closed]
- Delete Media not attached with Any posts
- Is there a good way to load tiny_mce_popup.js through editor.windowManager.open?
- Generate Own Custom CSS Button with icon
- “switchEditors is not defined” with wp_editor() in jQuery UI tabs
- Example for use tinymce in wordpress 3.5.1?
- Custom characters of tinymce editor are saved as question mark
- “After file loaded” action
- How to disable tinyMCE button added by a plugin?
- Problem enabling the user to edit Markdown and displaying the HTML output (WMD Editor plugin for WordPress)
- Why does “updated_post_meta” did not fire when uploading media other than image?
- WordPress Media Library Folders + Custom Linux Server Hosting
- How to apply to hide TinyMCE (wp_editor) on button click
- Bulk Image Resize for Media Library, but for ENLARGING instead of Shrinking
- how to move a plugin-block in Edit Post page back to bottom area?
- How to hide the cell properties and row properties in TinyMCE WordPress?