alleyinteractive / wordpress-fieldmanager

Custom field types for WordPress
Other
533 stars 101 forks source link

RichTextArea doesn't work in Quickedit #342

Open mboynes opened 9 years ago

mboynes commented 9 years ago

Tested using the following code:

add_action( 'fm_quickedit_post', function() {
    $fm = new Fieldmanager_RichTextArea( array(
        'name' => 'demo',
    ) );
    $fm->add_quickedit_box(
        'Custom Fields',
        'post',
        function( $values ) {
            return ! empty( $values['demo'] ) ? $values['demo'] : '';
        }
    );
} );

The visual editor kicks in when you switch to Text mode and back to Visual mode, but Text mode never works. The editor stops working if you attempt to open a second quickedit box on the same screen.

danielbachhuber commented 8 years ago

This is an enhancement, not a bug.