• I have a repeatable field group with two fields, a textfield and a WYSIWYG field.

    If I try to add an image into the WYSIWYG field using the media browser, it will hang and never add the image. (using Firefox 3.6)

    I attempted to add an image using Chrome browser and had the same issue.

    I attempted to add an image using Safari, and found that the visual editor doesn’t display at all, and pressing any of the media buttons causes the media browser to open in the main browser window instead of Thickbox pop-up.

    I’d love to have a solution so I can use the media browser and insert images into my WYSIWYG fields!

Viewing 1 replies (of 1 total)
  • Thread Starter Rachelle Wise

    (@chellechan)

    Hmm, just figured out the hanging. Posting my solution in case it helps anyone in the future. Found it here: http://wordpress.org/support/topic/adding-rich-text-editing-to-your-plugin?replies=15

    Needed to add this block into the functions.php file. Seems strange, but it did the trick.

    add_filter('admin_head','ShowTinyMCE');
    function ShowTinyMCE() {
    	// conditions here
    	wp_enqueue_script( 'common' );
    	wp_enqueue_script( 'jquery-color' );
    	wp_print_scripts('editor');
    	if (function_exists('add_thickbox')) add_thickbox();
    	wp_print_scripts('media-upload');
    	if (function_exists('wp_tiny_mce')) wp_tiny_mce();
    	wp_admin_css();
    	wp_enqueue_script('utils');
    	do_action("admin_print_styles-post-php");
    	do_action('admin_print_styles');
    }

    Still having trouble with Safari, however. The WYSIWYG editor seems disabled.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Simple Fields] Media Browser Issues’ is closed to new replies.