Hi All,
I have been looking into the conflict between CPT and FII that cause multiple insert to fail, currently a resolution looks difficult (not possible without plugin author's collaboration), here is why:
FII use a little trick to allow it to send newline into the editing panel, this requires a filter to overcome the current media manager insert limit:
//used for passing content to edit panel.
function fast_insert_to_editor($html) {
?>
<script type="text/javascript">
/* <![CDATA[ */
var win = window.dialogArguments || opener || parent || top;
win.send_to_editor('<?php echo str_replace('\\\n','\\n',addslashes($html)); ?>');
/* ]]> */
</script>
<?php
exit;
}
on the other hand, CPT utilize their own trick as well:
function media_send_to_custom_field($html) {
$out = '<script type="text/javascript">' . "\n" .
' /* <![CDATA[ */' . "\n" .
' var win = window.dialogArguments || opener || parent || top;' . "\n" .
' if ( typeof win.send_to_custom_field == "function" ) ' . "\n" .
' win.send_to_custom_field("' . addslashes($html) . '");' . "\n" .
' else ' . "\n" .
' win.send_to_editor("' . addslashes($html) . '");' . "\n" .
'/* ]]> */' . "\n" .
'</script>' . "\n";
echo $out;
What this means is that only one of the plugin can be in charge of sending the data to editing panel. Unless there is a compatible way of doing so, user has to pick one plugin's functionality over the other.
flick's workaround comes at a price, but if you are not using CPT's insert function that extensively, it's an acceptable price.
I really hope WP3.3 improve its media manager in the "editing" direction, but as far as I can tell with 3.3 beta2, their focus has been the uploader.