Adds image html to editor

Signature

media_send_to_editor( $html )
html
 (string)

Return

(void)

Source

function media_send_to_editor($html) {
?>
<script type="text/javascript">
/* <![CDATA[ */
var win = window.dialogArguments || opener || parent || top;
win.send_to_editor('<?php echo addslashes($html); ?>');
/* ]]> */
</script>
<?php
	exit;
}
WP Trac GitHub

Link here