Target of medial_buttons
-
Hello everybody,
please advise – there is a cool image/media uploader in WordPress created by media_buttons() function. Standardly it outputs into rich editor iframe. I need to change its target to a normal textbox, it should write there only the choosen filename.
If I use this:
<input type=”text” id=”picture” class=”txtbg” value=”” size=”30″
name=”picture” /><?php do_action( ‘media_buttons’,
‘picture’ ); ?>
<?php wp_editor( ”, ‘text’ ); ?>
there will be two media buttons – one right after the #picture textbox, the other one right above the #text textarea. Both media buttons output into the #text textarea, even I have set their targets to proper field.Is there a way how to make media buttons output into choosen textbox and not into the editor textarea please?
Best regards,
Peter
- The topic ‘Target of medial_buttons’ is closed to new replies.